diff --git a/modules/bootstrapped/test/src/smithy4s/DocumentSpec.scala b/modules/bootstrapped/test/src/smithy4s/DocumentSpec.scala index d875f0b7b..820b88944 100644 --- a/modules/bootstrapped/test/src/smithy4s/DocumentSpec.scala +++ b/modules/bootstrapped/test/src/smithy4s/DocumentSpec.scala @@ -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."