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

version» Context lines:

pike.git/src/modules/_Roxen/testsuite.in:109:      test_hp( "GET / HTTP/1.0\r\nBlaha: foo\nbar\r\nzonk: 1\r\n\r\n",   ({ "", "GET / HTTP/1.0", ([ "blaha":"foo", "zonk":"1" ]) }) )      test_hp( "GET / HTTP/1.0\r\nblaha: foo\r\nzonk: 1\r\n\r\n",   ({ "", "GET / HTTP/1.0", ([ "blaha":"foo", "zonk":"1" ]) }) )      test_hp( "GET / HTTP/1.0\r\nblaha: foo\n\rBlaha: bar\r\n\r\n",   ({ "", "GET / HTTP/1.0", ([ "blaha":({ "foo", "bar" }) ]) }) )    + test_hp( "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 bar", "x":"1\t2" ]) }) ) +    test_any_equal([[    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"]) }) ]])      END_MARKER