Skip to content

Commit

Permalink
fix native tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisjkl committed Dec 4, 2024
1 parent 29df28d commit 922e43b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/bootstrapped/test/src/smithy4s/DocumentSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ class DocumentSpec() extends FunSuite {
val in = Double.NaN
val error = Try(Document.encode(in)).failed.get
val expectedMessage =
if (weaver.Platform.isJS) "For input string: \"NaN\""
if (weaver.Platform.isJS || weaver.Platform.isNative)
"For input string: \"NaN\""
else
"Character N is neither a decimal digit number, decimal point, nor \"e\" notation exponential mark."

Expand Down

0 comments on commit 922e43b

Please sign in to comment.