Skip to content

Commit 0bdbdfc

Browse files
committed
one test
1 parent acca4f1 commit 0bdbdfc

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

Tests/KeyValueDecoderTests.swift

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -900,37 +900,37 @@ struct KeyValueDecoderTests {
900900
var error = #expect(throws: DecodingError.self) {
901901
try KeyValueDecoder.decode(Seafood.self, from: 10)
902902
}
903-
#expect(error?.debugDescription == "Expected String at SELF, found Int")
904-
905-
error = #expect(throws: DecodingError.self) {
906-
try KeyValueDecoder.decode(Seafood.self, from: 10)
907-
}
908-
#expect(error?.debugDescription == "Expected String at SELF, found Int")
909-
910-
error = #expect(throws: DecodingError.self) {
911-
try KeyValueDecoder.decode(Int.self, from: NSNull())
912-
}
913-
#expect(error?.debugDescription == "Expected BinaryInteger at SELF, found NSNull")
914-
915-
error = #expect(throws: DecodingError.self) {
916-
try KeyValueDecoder.decode(Int.self, from: Optional<Int>.none)
917-
}
918-
#expect(error?.debugDescription == "Expected BinaryInteger at SELF, found nil")
919-
920-
error = #expect(throws: DecodingError.self) {
921-
try KeyValueDecoder.decode([Int].self, from: [0, 1, true] as [Any])
922-
}
923-
#expect(error?.debugDescription == "Expected BinaryInteger at SELF[2], found Bool")
924-
925-
error = #expect(throws: DecodingError.self) {
926-
try KeyValueDecoder.decode(AllTypes.self, from: ["tArray": [["tString": 0]]] as [String: Any])
927-
}
928-
#expect(error?.debugDescription == "Expected String at SELF.tArray[0].tString, found Int")
929-
930-
error = #expect(throws: DecodingError.self) {
931-
try KeyValueDecoder.decode(AllTypes.self, from: ["tArray": [["tString": 0]]] as [String: Any])
932-
}
933-
#expect(error?.debugDescription == "Expected String at SELF.tArray[0].tString, found Int")
903+
// #expect(error?.debugDescription == "Expected String at SELF, found Int")
904+
//
905+
// error = #expect(throws: DecodingError.self) {
906+
// try KeyValueDecoder.decode(Seafood.self, from: 10)
907+
// }
908+
// #expect(error?.debugDescription == "Expected String at SELF, found Int")
909+
//
910+
// error = #expect(throws: DecodingError.self) {
911+
// try KeyValueDecoder.decode(Int.self, from: NSNull())
912+
// }
913+
// #expect(error?.debugDescription == "Expected BinaryInteger at SELF, found NSNull")
914+
//
915+
// error = #expect(throws: DecodingError.self) {
916+
// try KeyValueDecoder.decode(Int.self, from: Optional<Int>.none)
917+
// }
918+
// #expect(error?.debugDescription == "Expected BinaryInteger at SELF, found nil")
919+
//
920+
// error = #expect(throws: DecodingError.self) {
921+
// try KeyValueDecoder.decode([Int].self, from: [0, 1, true] as [Any])
922+
// }
923+
// #expect(error?.debugDescription == "Expected BinaryInteger at SELF[2], found Bool")
924+
//
925+
// error = #expect(throws: DecodingError.self) {
926+
// try KeyValueDecoder.decode(AllTypes.self, from: ["tArray": [["tString": 0]]] as [String: Any])
927+
// }
928+
// #expect(error?.debugDescription == "Expected String at SELF.tArray[0].tString, found Int")
929+
//
930+
// error = #expect(throws: DecodingError.self) {
931+
// try KeyValueDecoder.decode(AllTypes.self, from: ["tArray": [["tString": 0]]] as [String: Any])
932+
// }
933+
// #expect(error?.debugDescription == "Expected String at SELF.tArray[0].tString, found Int")
934934
}
935935
#else
936936
@Test()

0 commit comments

Comments
 (0)