@@ -895,18 +895,18 @@ struct KeyValueDecoderTests {
895895
896896 @Test ( )
897897 func decodingErrors( ) throws {
898- // expectDecodingError(try KeyValueDecoder.decode(Seafood.self, from: 10)) { error in
899- // #expect(error.debugDescription == "Expected String at SELF, found Int")
900- // }
898+ expectDecodingError ( try KeyValueDecoder . decode ( Seafood . self, from: 10 ) ) { error in
899+ #expect( error. debugDescription == " Expected String at SELF, found Int " )
900+ }
901901// expectDecodingError(try KeyValueDecoder.decode(Int.self, from: NSNull())) { error in
902902// #expect(error.debugDescription == "Expected BinaryInteger at SELF, found NSNull")
903903// }
904904// expectDecodingError(try KeyValueDecoder.decode(Int.self, from: Optional<Int>.none)) { error in
905905// #expect(error.debugDescription == "Expected BinaryInteger at SELF, found nil")
906906// }
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- }
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