Skip to content

Commit

Permalink
Add test for issue 78 (which does not produce the reported behaviour)
Browse files Browse the repository at this point in the history
  • Loading branch information
openstrike committed Jul 18, 2017
1 parent d73140e commit 1dc82f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/headers.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use warnings;

use Test::More;

plan tests => 168;
plan tests => 172;

my($h, $h2);
sub j { join("|", @_) }
Expand Down Expand Up @@ -171,7 +171,7 @@ like($h->header("Date"), qr/^[A-Z][a-z][a-z], \d\d .* GMT$/);
}

if ($] < 5.006) {
Test::skip("Can't call variable method", 1) for 1..13;
Test::skip("Can't call variable method", 1) for 1..17;
}
else {
# other date fields
Expand All @@ -182,6 +182,7 @@ for my $field (qw(expires if_modified_since if_unmodified_since
is($h->$field, undef);
is($h->$field(time), undef);
like((time - $h->$field), qr/^[01]$/);
ok($h->$field('not an int'));
EOT
}
is(j($h->header_field_names), "Date|If-Modified-Since|If-Unmodified-Since|Expires|Last-Modified");
Expand Down

0 comments on commit 1dc82f9

Please sign in to comment.