Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
add nok() to Test.pm
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
coke committed Feb 25, 2012
1 parent f3ef7f0 commit 52a3ace
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Pugs/ext/Test/lib/Test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ sub ok (Bool $cond, Str $desc?, :$todo, :$depends) returns Bool is export {
Test::proclaim($cond, $desc, $todo, :$depends);
}

## nok

sub nok (Bool $cond, Str $desc?, :$todo, :$depends) returns Bool is export {
Test::proclaim(!$cond, $desc, $todo, :$depends);
}

## is

sub is (Str $got, Str $expected, Str $desc?, :$todo, :$depends) returns Bool is export {
Expand Down

0 comments on commit 52a3ace

Please sign in to comment.