@@ -940,7 +940,6 @@ extension TestNSJSONSerialization {
940
940
( " test_jsonReadingOffTheEndOfBuffers " , test_jsonReadingOffTheEndOfBuffers) ,
941
941
( " test_jsonObjectToOutputStreamBuffer " , test_jsonObjectToOutputStreamBuffer) ,
942
942
( " test_jsonObjectToOutputStreamFile " , test_jsonObjectToOutputStreamFile) ,
943
- ( " test_invalidJsonObjectToStreamBuffer " , test_invalidJsonObjectToStreamBuffer) ,
944
943
( " test_jsonObjectToOutputStreamInsufficientBuffer " , test_jsonObjectToOutputStreamInsufficientBuffer) ,
945
944
( " test_booleanJSONObject " , test_booleanJSONObject) ,
946
945
( " test_serialize_dictionaryWithDecimal " , test_serialize_dictionaryWithDecimal) ,
@@ -1289,14 +1288,6 @@ extension TestNSJSONSerialization {
1289
1288
}
1290
1289
}
1291
1290
1292
- func test_invalidJsonObjectToStreamBuffer( ) {
1293
- let str = " Invalid JSON "
1294
- let buffer = Array < UInt8 > ( repeating: 0 , count: 10 )
1295
- let outputStream = OutputStream ( toBuffer: UnsafeMutablePointer ( mutating: buffer) , capacity: buffer. count)
1296
- outputStream. open ( )
1297
- XCTAssertThrowsError ( try JSONSerialization . writeJSONObject ( str, toStream: outputStream, options: [ ] ) )
1298
- }
1299
-
1300
1291
func test_booleanJSONObject( ) {
1301
1292
do {
1302
1293
let objectLikeBoolArray = try JSONSerialization . data ( withJSONObject: [ true , NSNumber ( value: false ) , NSNumber ( value: true ) ] as Array < Any > )
0 commit comments