We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d1d5f commit 3d9efccCopy full SHA for 3d9efcc
src/core/testing.nqp
@@ -9,17 +9,18 @@ sub plan($quantity) {
9
sub ok($condition, $desc?) {
10
$test_counter := $test_counter + 1;
11
12
+ my @output;
13
unless $condition {
- print("not ");
14
+ @output.push("not ");
15
}
- print("ok $test_counter");
16
+ @output.push("ok $test_counter");
17
if $desc {
- print(" - $desc");
18
+ @output.push(" - $desc");
19
20
if $test_counter <= $todo_upto_test_num {
- print($todo_reason);
21
+ @output.push($todo_reason);
22
- print("\n");
23
+ say(|@output);
24
25
$condition ?? 1 !! 0
26
0 commit comments