Skip to content

Commit

Permalink
Fix check for defined result
Browse files Browse the repository at this point in the history
Tests get confusing with Test::Deep if $got is undefined (and isn't
passed explicitly). e.g.,
`cmp_deeply(ListTester::parse_list($to_parse)...`.
  • Loading branch information
GuiltyDolphin committed Jul 11, 2016
1 parent a3a08de commit f379ce0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/00-roles/Parse/List.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ sub t { cmp_deeply(@_) }

sub parse_test {
my ($to_parse, $expected) = @_;
t(ListTester::parse_list($to_parse), $expected, "parse $to_parse");
my $parsed = ListTester::parse_list($to_parse);
t($parsed, $expected, "parse $to_parse");
}

subtest initialization => sub {
Expand Down

0 comments on commit f379ce0

Please sign in to comment.