Skip to content

Commit

Permalink
Improves coverage by testing tokens directly, refs #52
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Nov 30, 2022
1 parent 42c6774 commit 273de02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/missing-components.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ use Test;
use URI;
use IETF::RFC_Grammar::URI;

plan 5;
plan 6;

ok URI.new(uri=>''), "Empty URI is OK";
ok URI.new(uri=>'http:'), "Scheme-only URI is OK";

nok 'foo' ~~ IETF::RFC_Grammar::URI.new().TOP-non-empty, "TOP-non-empty works";
ok '#foo' ~~ IETF::RFC_Grammar::URI.new().URI-reference, "Relative URIs work";
ok '' ~~ IETF::RFC_Grammar::URI.new().path-abempty, "path-abempty work";
nok 'foo:bar_baz' ~~ IETF::RFC_Grammar::URI.new().absolute-URI,
"absolute-URI covered"

0 comments on commit 273de02

Please sign in to comment.