Skip to content

Commit 148ebdc

Browse files
committed
Help compiler in unit tests for type inference
1 parent e25db7d commit 148ebdc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/NIORedisTests/ChannelHandlers/RESPDecoder+ParsingTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ final class RESPDecoderParsingTests: XCTestCase {
5757
XCTAssertTrue(t1.0?.data?.count == 3)
5858
XCTAssertTrue(t1.1?.data?.count == 4)
5959

60-
let t2 = try parseTest_twoValues(withChunks: [
60+
let chunks: [Data] = [
6161
"$3\r".convertedToData(),
6262
"\n".convertedToData() + Data([0xAA, 0xA3, 0xFF]) + "\r\n$".convertedToData(),
6363
"4\r\n".convertedToData() + Data([0xbb, 0x3a, 0xba, 0xFF]) + "\r\n".convertedToData()
64-
])
64+
]
65+
let t2 = try parseTest_twoValues(withChunks: chunks)
6566
XCTAssertTrue(t2.0?.data?.count == 3)
6667
XCTAssertTrue(t2.1?.data?.count == 4)
6768
}

0 commit comments

Comments
 (0)