Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
adjust tests
  • Loading branch information
gerdr committed Feb 17, 2013
1 parent de66164 commit 4068cef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion t/p5regex/01-p5regex.t
Expand Up @@ -39,7 +39,7 @@ sub test_line($line) {

my $rxcomp := pir::compreg__Ps('QRegex::P5Regex');
try {
my $rxsub := $rxcomp.compile($regex).main_sub();
my $rxsub := $rxcomp.compile($regex);
my $cursor := NQPCursor."!cursor_init"($target, :c(0));
my $match := $rxsub($cursor).MATCH;
if $expect_substr {
Expand Down
3 changes: 2 additions & 1 deletion t/qast/pirt.t
Expand Up @@ -6,7 +6,8 @@ sub is_pirt_result($producer, $expected, $desc) {
my $pirt := $producer();
my $pir := $pirt.pir();
#say($pir);
my $sub := QAST::Compiler.compile_and_init($pir).main_sub();
my $pbc := QAST::Compiler.pbc($pir);
my $sub := QAST::Compiler.init($pbc);
ok($sub() eq $expected, $desc);
}

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.compile_and_init($pir).main_sub();
my $pbc := QAST::Compiler.pbc($pir);
QAST::Compiler.init($pbc);
}
sub is_qast($qast, $value, $desc) {
try {
Expand Down
2 changes: 1 addition & 1 deletion t/qregex/01-qregex.t
Expand Up @@ -45,7 +45,7 @@ sub test_line($line) {

my $rxcomp := pir::compreg__Ps('QRegex::P6Regex');
try {
my $rxsub := $rxcomp.compile($regex).main_sub();
my $rxsub := $rxcomp.compile($regex);
my $cursor := NQPCursor."!cursor_init"($target, :c(0));
my $match := $rxsub($cursor).MATCH;
if $expect_substr {
Expand Down

0 comments on commit 4068cef

Please sign in to comment.