Skip to content

Commit

Permalink
[truffle] Simple &ok and &plan before we can run better ones
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Jun 27, 2018
1 parent a6b54a2 commit a16e900
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions nqp-truffle.nqp
Expand Up @@ -389,12 +389,23 @@ class QAST::TruffleCompiler {


my $mini_setting := '
sub print($arg) {
nqp::print($arg);
}
sub say($arg) {
nqp::say($arg);
}
sub print($arg) {
nqp::print($arg);
sub plan($quantity) {
nqp::say("1..$quantity");
}
sub ok($condition) {
if $condition {
nqp::say("ok");
} else {
nqp::say("not ok");
}
}
';

Expand Down

0 comments on commit a16e900

Please sign in to comment.