Added a couple of Rain testcases

This commit is contained in:
Neil Brown 2008-03-20 16:54:03 +00:00
parent af4a66e2e4
commit 022447b04c
2 changed files with 14 additions and 0 deletions

7
testcases/alphabet.rain Normal file
View File

@ -0,0 +1,7 @@
process main (?uint8: in, !uint8: out, !uint8: err)
{
seqeach (c : ['a' .. 'z'])
{
out ! c;
}
}

7
testcases/assign.rain Normal file
View File

@ -0,0 +1,7 @@
process main (?uint8: in, !uint8: out, !uint8: err)
{
int: x,y,z;
x = y;
y = z + 5;
x = 2;
}