You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//_testFailure(of: Test.self, json: #"{"b": true}"#, expectedError: DecodingError.keyNotFound(_CodingKey(stringValue: "a")!, DecodingError.Context(codingPath: [], debugDescription: "No value associated with a.")))
674
-
//_testFailure(of: Test.self, json: #"{}"#, expectedError: DecodingError.keyNotFound(_CodingKey(stringValue: "a")!, DecodingError.Context(codingPath: [], debugDescription: "No value associated with a.")))
675
-
//_testFailure(of: TopLevelWrapper<Test>.self, json: #"{"value": {}}"#, expectedError: DecodingError.keyNotFound(_CodingKey(stringValue: "a")!, DecodingError.Context(codingPath: [], debugDescription: "No value associated with a.")))
_testFailure(of:Test.self, json:#"{"b": true}"#, expectedError:DecodingError.keyNotFound(_CodingKey(stringValue:"a")!,DecodingError.Context(codingPath:[], debugDescription:"No value associated with a.")))
674
+
_testFailure(of:Test.self, json:#"{}"#, expectedError:DecodingError.keyNotFound(_CodingKey(stringValue:"a")!,DecodingError.Context(codingPath:[], debugDescription:"No value associated with a.")))
675
+
_testFailure(of: TopLevelWrapper<Test>.self, json:#"{"value": {}}"#, expectedError:DecodingError.keyNotFound(_CodingKey(stringValue:"a")!,DecodingError.Context(codingPath:[], debugDescription:"No value associated with a.")))
676
676
_testFailure(of: TopLevelWrapper<Test>.self, json:#"{"value": {"b": true}}"#, expectedError:nil) //DecodingError.keyNotFound(_CodingKey(stringValue: "a")!, DecodingError.Context(codingPath: [_CodingKey(stringValue: "value")!], debugDescription: "No value associated with a.")))
677
677
}
678
678
@@ -864,24 +864,6 @@ class ReerJSONTests: XCTestCase {
864
864
returnDecimal(string: numberString)!
865
865
}
866
866
testRoundTrip(decimals)
867
-
// NSDecimalNumber doesn't conform to Decodable
868
-
//let nsDecimals: [NSDecimalNumber] = [1.2, 1]
869
-
//testRoundTrip(nsDecimals)
870
-
871
-
/*struct Aa: Equatable & Codable {
872
-
init(from decoder: Decoder) throws {
873
-
//let value = (decoder as! __JSONDecoder)
874
-
var outLength: Int32 = 0
875
-
let string = "{}"
876
-
string.withCString { (cString) -> Void in
877
-
let context = JNTCreateContext(cString, UInt32(string.count), "".utf8CString, "".utf8CString, "".utf8CString)
878
-
let value = JNTDocumentFromJSON(context, UnsafeRawPointer(cString), string.count, false, nil, true)
0 commit comments