Add ARM files
[dh-make-perl] / dev / arm / libwww-perl / libwww-perl-5.813 / t / base / status.t
1 use HTTP::Status;
2
3 print "1..8\n";
4
5 200 == RC_OK || print "not ";
6 print "ok 1\n";
7
8 is_success(RC_ACCEPTED) || print "not ";
9 print "ok 2\n";
10
11 is_error(RC_BAD_REQUEST) || print "not ";
12 print "ok 3\n";
13
14 is_redirect(RC_MOVED_PERMANENTLY) || print "not ";
15 print "ok 4\n";
16
17 is_success(RC_NOT_FOUND) && print "not ";
18 print "ok 5\n";
19
20 $mess = status_message(0);
21
22 defined $mess && print "not ";
23 print "ok 6\n";
24
25 $mess = status_message(200);
26
27 if ($mess =~ /ok/i) {
28     print "ok 7\n";
29 }
30
31 is_info(RC_CONTINUE) || print "not ";
32 print "ok 8\n";