Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
[nqp]: Somehow missed adding these tests in earlier commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Oct 23, 2009
1 parent b870296 commit 182e820
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
20 changes: 20 additions & 0 deletions t/nqp/00-literals.t
@@ -0,0 +1,20 @@
#!./parrot nqp.pbc

# check literals

say('1..8');

print("ok ");
print(1);
print("\n");

print('ok ');
say(2);

print("ok 3\n");
say('ok 4');
say("ok 5");
say(q<ok 6>);
say(q <ok 7>);

say("\x6f\x6b 8");
19 changes: 19 additions & 0 deletions t/nqp/01-if.t
@@ -0,0 +1,19 @@
#! nqp

# check control structure 'if'

say('1..4');

if 1 { say("ok 1 # on one line"); }

say("ok 2 # statements following if are okay");

if 1 {
say("ok 3 # multi-line if");
}

if 0 {
print("not ");
}

say("ok 4 # multi-line if, false condition causes block not to execute");

0 comments on commit 182e820

Please sign in to comment.