Skip to content

Commit

Permalink
[truffle] Get say()/print() a little closer to...
Browse files Browse the repository at this point in the history
the real implementation since slurpy args are now supported. Also
add a now passing test.
  • Loading branch information
MasterDuke17 committed Jul 19, 2018
1 parent 14ea33d commit 8ffcfb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/vm/jvm/Truffle.nqp
Expand Up @@ -706,11 +706,13 @@ class QAST::TruffleCompiler {


my $mini_setting := '
sub print($arg) {
nqp::print($arg);
sub print(*@args) {
nqp::print(nqp::join("", @args));
1;
}
sub say($arg) {
nqp::say($arg);
sub say(*@args) {
nqp::say(nqp::join("", @args));
1;
}
sub plan($quantity) {
Expand Down
2 changes: 1 addition & 1 deletion src/vm/jvm/bin/run_tests.pl
Expand Up @@ -9,6 +9,6 @@
}
});

my @nqp_tests = glob "t/nqp/{001,002,003,004,005,007,008,010,011,013,015,016,036,038,083}*.t";
my @nqp_tests = glob "t/nqp/{001,002,003,004,005,006,007,008,010,011,013,015,016,036,038,083}*.t";

$harness->runtests(@nqp_tests);

0 comments on commit 8ffcfb4

Please sign in to comment.