Skip to content

Commit c44d58d

Browse files
committed
remove last 2
1 parent 0bdbdfc commit c44d58d

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

Tests/KeyValueDecoderTests.swift

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -900,28 +900,28 @@ 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-
//
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+
925925
// error = #expect(throws: DecodingError.self) {
926926
// try KeyValueDecoder.decode(AllTypes.self, from: ["tArray": [["tString": 0]]] as [String: Any])
927927
// }

0 commit comments

Comments
 (0)