X-Git-Url: http://git.maemo.org/git/?p=dh-make-perl;a=blobdiff_plain;f=dev%2Fi386%2Flibwww-perl%2Flibwww-perl-5.813%2Ft%2Fbase%2Fstatus.t;fp=dev%2Fi386%2Flibwww-perl%2Flibwww-perl-5.813%2Ft%2Fbase%2Fstatus.t;h=2cfcb950265411d1337cec16a63ee0f4e9bf9e8d;hp=0000000000000000000000000000000000000000;hb=8977e561d8a9eae6959218b0306c9df2056a38a9;hpb=df794b845212301ea0d267c919232538bfef356a diff --git a/dev/i386/libwww-perl/libwww-perl-5.813/t/base/status.t b/dev/i386/libwww-perl/libwww-perl-5.813/t/base/status.t new file mode 100644 index 0000000..2cfcb95 --- /dev/null +++ b/dev/i386/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