Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test QAST::BVal node.
  • Loading branch information
jnthn committed May 12, 2012
1 parent efa345e commit 0147855
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion t/qast/qast.t
@@ -1,6 +1,6 @@
use QRegex;

plan(34);
plan(35);

# Following a test infrastructure.
sub compile_qast($qast) {
Expand Down Expand Up @@ -64,6 +64,18 @@ test_qast_result(
ok($r.m eq 'a', 'WVal node');
});

my $block := QAST::Block.new( QAST::IVal.new( :value(666) ) );
is_qast(
QAST::Block.new(
$block,
QAST::Op.new(
:op('call'),
QAST::BVal.new( :value($block) )
)
),
666,
'BVal node');

is_qast(
QAST::Block.new(
QAST::Op.new(
Expand Down

0 comments on commit 0147855

Please sign in to comment.