@@ -13,10 +13,10 @@ final class AsyncInputStreamTests: XCTestCase {
13
13
let stream = AsyncInputStream ( data: Data ( " Hello! " . utf8) )
14
14
try await AssertEqual ( [ 72 , 101 , 108 ] , await stream. read ( maxLength: 3 ) )
15
15
try await AssertEqual ( [ 108 , 111 ] , await stream. read ( maxLength: 2 ) )
16
- try await AssertEqual ( [ 33 ] , await stream. read ( maxLength: 99999 ) )
17
- try await AssertNil ( await stream. read ( maxLength: 99999 ) )
16
+ try await AssertEqual ( [ 33 ] , await stream. read ( maxLength: 99_999 ) )
17
+ try await AssertNil ( await stream. read ( maxLength: 99_999 ) )
18
18
try await AssertThrowsError (
19
- await stream. read ( maxLength: 99999 ) ,
19
+ await stream. read ( maxLength: 99_999 ) ,
20
20
" Should have thrown an error after closing " ,
21
21
{ XCTAssertEqual ( . closed, $0 as? AsyncInputStreamError ) }
22
22
)
@@ -40,10 +40,10 @@ final class AsyncInputStreamTests: XCTestCase {
40
40
41
41
try await AssertEqual ( [ 72 , 101 , 108 ] , await stream. read ( maxLength: 3 ) )
42
42
try await AssertEqual ( [ 108 , 111 ] , await stream. read ( maxLength: 2 ) )
43
- try await AssertEqual ( [ 33 ] , await stream. read ( maxLength: 99999 ) )
44
- try await AssertNil ( await stream. read ( maxLength: 99999 ) )
43
+ try await AssertEqual ( [ 33 ] , await stream. read ( maxLength: 99_999 ) )
44
+ try await AssertNil ( await stream. read ( maxLength: 99_999 ) )
45
45
try await AssertThrowsError (
46
- await stream. read ( maxLength: 99999 ) ,
46
+ await stream. read ( maxLength: 99_999 ) ,
47
47
" Should have thrown an error after closing " ,
48
48
{ XCTAssertEqual ( . closed, $0 as? AsyncInputStreamError ) }
49
49
)
0 commit comments