diff --git a/parse.nim b/parse.nim index 3db93d8..c47b9e4 100644 --- a/parse.nim +++ b/parse.nim @@ -301,10 +301,10 @@ suite "parser tests": check(packet.data == "Hello Alice!") test "content length": - let input = ":_target\talice\n25\n_hello_world\nHello Alice!\n|\n" + let input = ":_target\talice\n39\n:_hello\tworld\n_hello_world\nHello Alice!\n|\n" while packet.state != ParseState.Complete: discard parse(input, packet) - check(packet.contentLength == 25) + check(packet.contentLength == 39) check(packet.data == "Hello Alice!") echo "parser tests completed"