Permalink
Browse files

Pass $description as todo label

  • Loading branch information...
1 parent 80a4916 commit 76bb27104b68a94ec1b16989938b2645c587c2fc @bacek bacek committed Jan 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 t/lib/Test.pm
View
@@ -6,10 +6,10 @@ our sub yaml_ok($yaml, $expected, $description, *%adverbs) {
try {
my $result := $parser.read_string($yaml);
#_dumper($result);
- is_deeply($expected, $result, $description, todo => %adverbs<todo>);
+ is_deeply($expected, $result, $description, todo => %adverbs<todo> ?? $description !! 0);
CATCH {
- nok(1, "Parse failed '{ $! }'", %adverbs<todo>);
+ nok(1, "Parse failed '{ $! }'", %adverbs<todo> ?? $description !! 0);
}
}
}

0 comments on commit 76bb271

Please sign in to comment.