Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a test for the add_i operation on two QAST::IVals.
  • Loading branch information
jnthn committed Apr 22, 2012
1 parent e2aea7e commit 2e32225
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion t/qast/qast.t
@@ -1,6 +1,6 @@
use QRegex;

plan(3);
plan(4);

sub compile_qast($qast) {
my $post := QAST::Compiler.as_post($qast);
Expand Down Expand Up @@ -35,3 +35,14 @@ is_qast(
),
'Gorillas just love pizza',
'SVal node');

is_qast(
QAST::Block.new(
QAST::Op.new(
:op('add_i'),
QAST::IVal.new(:value(10)),
QAST::IVal.new(:value(95))
)
),
105,
'add_i operation with two IVal nodes');

0 comments on commit 2e32225

Please sign in to comment.