From 90eb96c889fd9881d483afe3deee284d8a288431 Mon Sep 17 00:00:00 2001 From: lurchi Date: Fri, 17 Aug 2018 00:27:23 +0200 Subject: [PATCH] more complex content length test --- parse.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"