On 6/17/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
> 
> Am 17.06.2005 um 21:23 schrieb Stephen Deasey:
> 
> >
> > Sounds like a plan for stage 1.
> >
> 
> Let me then try this one and see how far I'll come :-)
> 
> >
> 
> > If there's any part of the code base we should be testing, it's this.
> 
> Yes. But this is also the most complex one...


Luckily, the tests are easy to write :-)

We already have some tests for this area of code in tests/http.test. 
Here's a 3 line test for 404 pages:

test http-1.3 {HTTP/1.0 GET} -constraints serverListen -body {
    nstest_http -getbody 1 GET /noexist
} -match glob -result {404 *Not Found*}

We just need to build up the test library one test at a time.

Reply via email to