From 922e43b0d2fbbcf2346906aca81fd4e06c93a33b Mon Sep 17 00:00:00 2001 From: Jeff Lewis Date: Wed, 4 Dec 2024 16:47:01 -0700 Subject: [PATCH] fix native tests --- modules/bootstrapped/test/src/smithy4s/DocumentSpec.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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."