Skip to content

Commit c69ec85

Browse files
committed
Update TestJSONEncoder to account for new error message.
1 parent 1e32417 commit c69ec85

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

TestFoundation/TestJSONEncoder.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,11 @@ class TestJSONEncoder : XCTestCase {
598598
}
599599

600600
// Invalid JSON number formats
601-
testErrorThrown("Int8", "0000000000000000000000000000001", errorMessage: "The operation could not be completed")
602-
testErrorThrown("Double", "-.1", errorMessage: "The operation could not be completed")
603-
testErrorThrown("Int32", "+1", errorMessage: "The operation could not be completed")
604-
testErrorThrown("Int", ".012", errorMessage: "The operation could not be completed")
605-
testErrorThrown("Double", "2.7976931348623158e+308", errorMessage: "The operation could not be completed")
601+
testErrorThrown("Int8", "0000000000000000000000000000001", errorMessage: "The given data was not valid JSON.")
602+
testErrorThrown("Double", "-.1", errorMessage: "The given data was not valid JSON.")
603+
testErrorThrown("Int32", "+1", errorMessage: "The given data was not valid JSON.")
604+
testErrorThrown("Int", ".012", errorMessage: "The given data was not valid JSON.")
605+
testErrorThrown("Double", "2.7976931348623158e+308", errorMessage: "The given data was not valid JSON.")
606606
}
607607

608608

0 commit comments

Comments
 (0)