Skip to content

Commit 7058b03

Browse files
Theo van Hoeseloalders
authored andcommitted
add negative tests
1 parent 278c2a0 commit 7058b03

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 => 31;
5+
plan tests => 36;
66

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

@@ -34,3 +34,7 @@ ok(!is_redirect(99));
3434
ok(is_cacheable_by_default($_),
3535
"Cacheable by default [$_] " . status_message($_)
3636
) for (200,203,204,206,300,301,404,405,410,414,501);
37+
38+
ok(!is_cacheable_by_default($_),
39+
"... is not cacheable [$_] " . status_message($_)
40+
) for (100,201,302,400,500);

0 commit comments

Comments
 (0)