Skip to content

Commit 278c2a0

Browse files
Theo van Hoeseloalders
authored andcommitted
add tests
1 parent 2d6bd07 commit 278c2a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

t/status.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use strict;
22
use warnings;
33

44
use Test::More;
5-
plan tests => 20;
5+
plan tests => 31;
66

77
use HTTP::Status qw(:constants :is status_message);
88

@@ -30,3 +30,7 @@ ok(!is_server_error(999));
3030
ok(!is_info(99));
3131
ok(!is_success(99));
3232
ok(!is_redirect(99));
33+
34+
ok(is_cacheable_by_default($_),
35+
"Cacheable by default [$_] " . status_message($_)
36+
) for (200,203,204,206,300,301,404,405,410,414,501);

0 commit comments

Comments
 (0)