Skip to content

Commit

Permalink
add tests for the pir() function, since apparently CharMatrix2D didn'…
Browse files Browse the repository at this point in the history
…t work with it until recently
  • Loading branch information
Whiteknight committed Dec 3, 2009
1 parent 8783099 commit 3f29530
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion t/parrot/parrot_pir.t
@@ -1,7 +1,15 @@
plan(2);
plan(6);

% Test the pir() function
pir(".sub _tempa\nsay 'ok 1'\n.end")
pir(".sub _tempb\n.param string a\nsay a\n.end", "ok 2")
pir(".sub '' :anon\n.param string a\nsay a\n.end", "ok 3")
pir([".sub '' :anon\n.param string a\nsay a\n.end"], "ok 4")
pir([".sub '' :anon";".param string a";"say a";".end"], "ok 5")
pir([".sub '' :anon"
".param string a"
"say a"
".end"], "ok 6");



0 comments on commit 3f29530

Please sign in to comment.