pike.git / src / modules / _Roxen / testsuite.in

version» Context lines:

pike.git/src/modules/_Roxen/testsuite.in:123:    object hp = _Roxen.HeaderParser(0, 1);    return hp->feed( "GET / HTTP/1.0\r\nBlaha: foo\r\nblaha: foo\r\n\r\n" );   ]], [[ ({ "", "GET / HTTP/1.0", ([ "Blaha":"foo", "blaha":"foo"]) }) ]])      test_any_equal([[    object hp = _Roxen.HeaderParser(0, 0);    return hp->feed( "GET / HTTP/1.0\r\nBlaha: foo\r\nblaha: foo\r\n\r\n", 1 );   ]], [[ ({ "", "GET / HTTP/1.0", ([ "Blaha":"foo", "blaha":"foo"]) }) ]])      test_any_equal([[ +  object hp = _Roxen.HeaderParser(0, 0, 1); +  return hp->feed( "GET / HTTP/1.0\r\nblaha: foo\r\n bar\r\nx:1\r\n\t2\r\n\r\n" ); + ]], [[ ({ "", "GET / HTTP/1.0", ([ "blaha":"foo", "x":"1"]) }) ]]) +  + test_any_equal([[    object hp = _Roxen.HeaderParser();    return hp->feed( "GET / HTTP/1.0\r\nA\r\nblaha: foo\r\n\r\n" );   ]], [[ ({ "", "GET / HTTP/1.0", (["blaha":"foo"]) }) ]])      test_eval_error([[    object hp = _Roxen.HeaderParser(1);    return hp->feed( "GET / HTTP/1.0\r\nA\r\nblaha: foo\r\n\r\n" );   ]])      END_MARKER