@@ -945,7 +945,6 @@ extension TestJSONSerialization {
945
945
( " test_jsonReadingOffTheEndOfBuffers " , test_jsonReadingOffTheEndOfBuffers) ,
946
946
( " test_jsonObjectToOutputStreamBuffer " , test_jsonObjectToOutputStreamBuffer) ,
947
947
( " test_jsonObjectToOutputStreamFile " , test_jsonObjectToOutputStreamFile) ,
948
- ( " test_invalidJsonObjectToStreamBuffer " , test_invalidJsonObjectToStreamBuffer) ,
949
948
( " test_jsonObjectToOutputStreamInsufficientBuffer " , test_jsonObjectToOutputStreamInsufficientBuffer) ,
950
949
( " test_booleanJSONObject " , test_booleanJSONObject) ,
951
950
( " test_serialize_dictionaryWithDecimal " , test_serialize_dictionaryWithDecimal) ,
@@ -1315,14 +1314,6 @@ extension TestJSONSerialization {
1315
1314
}
1316
1315
}
1317
1316
1318
- func test_invalidJsonObjectToStreamBuffer( ) {
1319
- let str = " Invalid JSON "
1320
- let buffer = Array < UInt8 > ( repeating: 0 , count: 10 )
1321
- let outputStream = OutputStream ( toBuffer: UnsafeMutablePointer ( mutating: buffer) , capacity: buffer. count)
1322
- outputStream. open ( )
1323
- XCTAssertThrowsError ( try JSONSerialization . writeJSONObject ( str, toStream: outputStream, options: [ ] ) )
1324
- }
1325
-
1326
1317
func test_booleanJSONObject( ) {
1327
1318
do {
1328
1319
let objectLikeBoolArray = try JSONSerialization . data ( withJSONObject: [ true , NSNumber ( value: false ) , NSNumber ( value: true ) ] as Array < Any > )
0 commit comments