Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adjust tests
  • Loading branch information
gerdr committed Feb 22, 2013
1 parent a93c7c8 commit 529f351
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions t/qast/pirt.t
Expand Up @@ -6,8 +6,9 @@ sub is_pirt_result($producer, $expected, $desc) {
my $pirt := $producer();
my $pir := $pirt.pir();
#say($pir);
my $pbc := QAST::Compiler.evalpmc($pir);
ok($pbc() eq $expected, $desc);
my $pbc := QAST::Compiler.pbc($pir);
my $sub := QAST::Compiler.init($pbc);
ok($sub() eq $expected, $desc);
}

is_pirt_result({
Expand Down
3 changes: 2 additions & 1 deletion t/qast/qast.t
Expand Up @@ -7,7 +7,8 @@ sub compile_qast($qast) {
my $*QAST_BLOCK_NO_CLOSE := 1;
my $pirt := QAST::Compiler.as_post($qast);
my $pir := $pirt.pir();
QAST::Compiler.evalpmc($pir);
my $pbc := QAST::Compiler.pbc($pir);
QAST::Compiler.init($pbc);
}
sub is_qast($qast, $value, $desc) {
try {
Expand Down

0 comments on commit 529f351

Please sign in to comment.