Skip to content

Commit c18ed0a

Browse files
committed
3 integer
1 parent c656538 commit c18ed0a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/KeyValueDecoderTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -901,12 +901,12 @@ struct KeyValueDecoderTests {
901901
// expectDecodingError(try KeyValueDecoder.decode(Int.self, from: NSNull())) { error in
902902
// #expect(error.debugDescription == "Expected BinaryInteger at SELF, found NSNull")
903903
// }
904-
expectDecodingError(try KeyValueDecoder.decode(Int.self, from: Optional<Int>.none)) { error in
905-
#expect(error.debugDescription == "Expected BinaryInteger at SELF, found nil")
906-
}
907-
// expectDecodingError(try KeyValueDecoder.decode([Int].self, from: [0, 1, true] as [Any])) { error in
908-
// #expect(error.debugDescription == "Expected BinaryInteger at SELF[2], found Bool")
904+
// expectDecodingError(try KeyValueDecoder.decode(Int.self, from: Optional<Int>.none)) { error in
905+
// #expect(error.debugDescription == "Expected BinaryInteger at SELF, found nil")
909906
// }
907+
expectDecodingError(try KeyValueDecoder.decode([Int].self, from: [0, 1, true] as [Any])) { error in
908+
#expect(error.debugDescription == "Expected BinaryInteger at SELF[2], found Bool")
909+
}
910910
// expectDecodingError(try KeyValueDecoder.decode(AllTypes.self, from: ["tArray": [["tString": 0]]] as [String: Any])) { error in
911911
// #expect(error.debugDescription == "Expected String at SELF.tArray[0].tString, found Int")
912912
// }

0 commit comments

Comments
 (0)