X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=deb-src%2Flibwww-perl%2Flibwww-perl-5.813%2Ft%2Fbase%2Fstatus.t;fp=deb-src%2Flibwww-perl%2Flibwww-perl-5.813%2Ft%2Fbase%2Fstatus.t;h=2cfcb950265411d1337cec16a63ee0f4e9bf9e8d;hb=d615bbbf525d490a6803e161c1063da7ee8fb9bc;hp=0000000000000000000000000000000000000000;hpb=5638bd62c66215ffc4830630a7bfcfe5cdf331d7;p=pkg-perl diff --git a/deb-src/libwww-perl/libwww-perl-5.813/t/base/status.t b/deb-src/libwww-perl/libwww-perl-5.813/t/base/status.t new file mode 100644 index 0000000..2cfcb95 --- /dev/null +++ b/deb-src/libwww-perl/libwww-perl-5.813/t/base/status.t @@ -0,0 +1,32 @@ +use HTTP::Status; + +print "1..8\n"; + +200 == RC_OK || print "not "; +print "ok 1\n"; + +is_success(RC_ACCEPTED) || print "not "; +print "ok 2\n"; + +is_error(RC_BAD_REQUEST) || print "not "; +print "ok 3\n"; + +is_redirect(RC_MOVED_PERMANENTLY) || print "not "; +print "ok 4\n"; + +is_success(RC_NOT_FOUND) && print "not "; +print "ok 5\n"; + +$mess = status_message(0); + +defined $mess && print "not "; +print "ok 6\n"; + +$mess = status_message(200); + +if ($mess =~ /ok/i) { + print "ok 7\n"; +} + +is_info(RC_CONTINUE) || print "not "; +print "ok 8\n"; \ No newline at end of file