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

Commit 52a3ace

Browse files
committed
add nok() to Test.pm
Fixes #3
1 parent f3ef7f0 commit 52a3ace

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Pugs/ext/Test/lib/Test.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ sub ok (Bool $cond, Str $desc?, :$todo, :$depends) returns Bool is export {
7777
Test::proclaim($cond, $desc, $todo, :$depends);
7878
}
7979

80+
## nok
81+
82+
sub nok (Bool $cond, Str $desc?, :$todo, :$depends) returns Bool is export {
83+
Test::proclaim(!$cond, $desc, $todo, :$depends);
84+
}
85+
8086
## is
8187

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

0 commit comments

Comments
 (0)