Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Basic test for QAST::CompUnit.
  • Loading branch information
jnthn committed Jun 30, 2012
1 parent 8302932 commit 98c1660
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion t/qast/qast.t
@@ -1,6 +1,6 @@
use QAST;

plan(59);
plan(60);

# Following a test infrastructure.
sub compile_qast($qast) {
Expand Down Expand Up @@ -882,3 +882,11 @@ is_qast(
'call with named flattened argument works');
}

is_qast(
QAST::CompUnit.new(
QAST::Block.new(
QAST::SVal.new( :value('La Trappe') )
)
),
'La Trappe',
'QAST::CompUnit compiles the top level block inside of it');

0 comments on commit 98c1660

Please sign in to comment.