Commits

Anonymous committed 6b87f3e

Rename test files, since testing order no longer depends on filename.

  • Participants
  • Parent commits a029eb5

Comments (0)

Files changed (26)

File Lib/test/parrot/01-literals.py

-#!./parrot pynie.pbc
-
-# check literals
-
-print 'test: integer literals'
-0
-1
-12
-
-#123l
-#1234L
-print 'success: integer literals'
-
-
-
-print 'test: octal literals'
-01
-02
-03
-04
-05
-06
-07
-print 'success: octal literals'
-
-
-print 'test: hex literals'
-0x1
-0x2
-0x3
-0x4
-0x5
-0x6
-0x7
-0x8
-0x9
-0xa
-0xA
-0xb
-0xB
-0xc
-0xC
-0xd
-0xD
-0xe
-0xE
-0xf
-0xF
-0xdeadbeef
-print 'success: hex literals'
-
-print 'test: floating point literals'
-#3.14
-#10.
-#.001
-#1e100
-#
-#3.14e-10
-#0e0
-#0E0
-#
-print 'success: floating point literals'
-
-
-print 'test:',
-print 4
-print 'success:',
-print 4
-
-
-print 'test: imaginary literals'
-#3.14j
-#10.j
-#10j
-#.001j
-#1e100j
-#3.14e-10j
-#1J
-print 'success: imaginary literals'

File Lib/test/parrot/02-op-math.py

-#!./parrot pynie.pbc
-
-# basic math operators
-
-print 'test: 1'
-print 'success:', 0 + 1
-print 'test: 2'
-print 'success:', 1 + 1
-print 'test: 3'
-print 'success:', 4 - 1
-print 'test: 4'
-print 'success:', 2 * 2
-
-# //, << and >>  operators
-print 'test: 5'
-print 'success:', 10 // 2
-print 'test: 6'
-print 'success:', 3<<1
-print 'test: 7'
-print 'success:', 14>>1
-print 'test: 8'
-print 'success:', 0 // 1 + 8
-
-# ** operator
-print 'test: 9'
-print 'success:', 3**2
-print 'test: 10'
-print 'success:', 0**0+9
-print 'test: 11'
-print 'success:', 0**1+11
-print 'test: 12'
-print 'success:', 1**0+11
-
-# unary + and -
-print 'test: 13'
-print 'success:', +13
-print 'test: 14'
-print 'success:', -10 + 24
-print 'test: -15'
-print 'success:', -15

File Lib/test/parrot/03-op-logic.py

-#!./parrot pynie.pbc
-
-# &
-
-print 'test: 1'
-print 'success:', (0 & 0) + 1
-print 'test: 2'
-print 'success:', (1 & 0) + 2
-print 'test: 3'
-print 'success:', (0 & 1) + 3
-print 'test: 4'
-print 'success:', (1 & 1) + 3
-
-# |
-
-print 'test: 5'
-print 'success:', (0 | 0) + 5
-print 'test: 6'
-print 'success:', (1 | 0) + 5
-print 'test: 7'
-print 'success:', (0 | 1) + 6
-print 'test: 8'
-print 'success:', (1 | 1) + 7

File Lib/test/parrot/05-vars.py

-#!./parrot pynie.pbc
-
-print 'test: 1'
-i=1
-print 'success:', i
-
-print 'test: 2'
-i=i+1
-print 'success:', i
-
-print 'test: 3'
-s='3'
-print 'success:', s
-
-print 'test: string 4'
-s='string 4'
-print 'success:', s

File Lib/test/parrot/06-stmts.py

-#!./parrot pynie.pbc
-
-# if
-
-print 'test: if true'
-if 1: print 'success: if true'
-else: print 'failure: if true'
-
-print 'test: if false'
-if 0: print 'failure: if false'
-else: print 'success: if false'
-
-print 'test: elif true'
-if 0: print 'failure: elif true'
-elif 1: print 'success: elif true'
-
-print 'test: elif false'
-if 0: print 'failure: elif false'
-elif 0: print 'failure: elif false'
-else: print 'success: elif false'
-
-# while
-
-i=5
-while i < 7:
-    print 'test:', i
-    print 'success:', i
-    i=i+1
-
-print 'test: while count'
-if i == 7: print 'success: while count'
-else: print 'failure: while count'
-
-print 'test: while false'
-while 0:
-    print 'failure: while false'
-else:
-    print 'success: while false'
-
-# for
-
-print 'test: for list literal'
-n = 0
-compare = 1
-for i in [ 1,2,3,4 ]:
-    n += 1
-    if i != n: compare = 0
-if compare: print 'success: for list literal'
-else: print 'failure: for list literal'
-
-print 'test: for list assign'
-lst = [ 1,2,3,4 ]
-n = 0
-compare = 1
-for i in lst:
-    n += 1
-    if i != n: compare = 0
-if compare: print 'success: for list assign'
-else: print 'failure: for list assign'
-
-print 'test: for list bare'
-n = 0
-compare = 1
-for i in 1,2,3,4:
-    n += 1
-    if i != n: compare = 0
-if compare: print 'success: for list bare'
-else: print 'failure: for list bare'
-
-print 'test: nested fors'
-lst = [ ]
-for i in range(3):
-    # XXX ResizablePMCArray has a 'push' method, use list.append
-    for j in range(3):
-        lst.push((i + 1) * (j + 1))
-compare = 1
-lst2 = [ 1, 2, 3,  2, 4, 6,  3, 6, 9 ]
-for i in range(9):
-    if lst[i] != lst2[i]: compare = 0
-if compare: print 'success: nested fors'
-else: print 'failure: nested fors'
-
-print 'test: multiple iterators'
-#compare = 0
-#for i, j in ( (0, 0), (1, 2), (2, 4) ):
-#    if j == i * 2: compare += 1
-#if compare == 3: print 'success: multiple iterators'
-#else: print 'failure: multiple iterators'
-print 'xfail: multiple iterators ['
-print 'multiple iterators not implemented yet'
-print ']'
-
-print 'test: nested scopes'
-i = 4
-if 0:
-    if 0: pass
-    i = 2
-if i == 2: print 'failure: nested scopes'
-else: print 'success: nested scopes'

File Lib/test/parrot/07-op-cmp.py

-#!./parrot pynie.pbc
-
-print 'test: 0 less than 1'
-if 0 < 1: print 'success: 0 less than 1'
-
-print 'test: 1 greater than 0'
-if 1 > 0: print 'success: 1 greater than 0'
-
-print 'test: 0 less than/equal 1'
-if 0 <= 1: print 'success: 0 less than/equal 1'
-
-print 'test: 0 less than/equal itself'
-if 0 <= 0: print 'success: 0 less than/equal itself'
-
-print 'test: 1 greater than/equal 0'
-if 1 >= 0: print 'success: 1 greater than/equal 0'
-
-print 'test: 0 greater than/equal itself'
-if 0 >= 0: print 'success: 0 greater than/equal itself'
-
-print 'test: 0 less than 1, less than 2'
-if 0 < 1 < 2: print 'success: 0 less than 1, less than 2'
-
-print 'test: 2 greater than 1, greater than 0'
-if 2 > 1 > 0: print 'success: 2 greater than 1, greater than 0'

File Lib/test/parrot/08-func.py

-#!./parrot pynie.pbc
-
-print 'test: define and call a function'
-
-def x():
- print "success: define and call a function"
-
-x()
-
-print 'test: a function with arguments'
-
-def y(a,b,c):
- pass
-
-y(1,2,3)
-
-print 'success: a function with arguments'

File Lib/test/parrot/09-list.py

-#!./parrot
-
-
-print 'test: one element list'
-a = ["parrot"]
-if a: print 'success: one element list'
-else: print 'failure: one element list'
-
-print 'test: two element list'
-b = ["success: two element list", ["success: subelement"]]
-print b[0]
-print 'test: subelement'
-print b[1][0]
-
-print 'test: single item in parens'
-c = ("success: single item in parens")
-print c
-
-print 'test: single item with comma'
-d = ("success: single item with comma",)
-print d[0]

File Lib/test/parrot/10-augop.py

-#!./parrot pynie.pbc
-
-# check augmented assignment ops
-
-print 'test: plus assign'
-i = 0
-i += 10
-if i == 10: print 'success: plus assign'
-else: print 'failure: plus assign'
-
-print 'test: minus assign'
-i = 10
-i -= 5
-if i == 5: print 'success: minus assign'
-else: print 'failure: minus assign'
-
-print 'test: multiply assign'
-i = -5
-i *= 2
-if i == -10: print 'success: multiply assign'
-else: print 'failure: multiply assign'
-
-print 'test: divide assign'
-i = 10
-i /= 2
-if i == 5: print 'success: divide assign'
-else: print 'failure: divide assign'
-
-print 'test: modulus assign'
-i = 10
-i %= 4
-if i == 2: print 'success: modulus assign'
-else: print 'failure: modulus assign'
-
-print 'test: exponent assign'
-#i = 3
-#i **= 3
-#if i == 27: print 'success: exponent assign'
-#else: print 'failure exponent assign'
-print 'xfail: exponent assign ['
-print 'implement **='
-print ']'
-
-print 'test: right shift assign'
-i = 128
-i >>= 2
-if i == 32: print 'success: right shift assign'
-else: print 'failure: right shift assign'
-
-print 'test: left shift assign'
-i = 1
-i <<= 10
-if i == 1024: print 'success: left shift assign'
-else: print 'failure: left shift assign'
-
-print 'test: bitwise AND assign'
-i = 0x55
-i &= 0x1f
-if i == 0x15: print 'success: bitwise AND assign'
-else: print 'failure: bitwise AND assign'
-
-print 'test: bitwise XOR assign'
-i = 0x55
-i ^= 0x1f
-if i == 0x4a: print 'success: bitwise XOR assign'
-else: print 'failure: bitwise XOR assign'
-
-print 'test: bitwise OR assign'
-i = 0x55
-i |= 0x1f
-if i == 0x5f: print 'success: bitwise OR assign'
-else: print 'failure: bitwise OR assign'

File Lib/test/parrot/11-boolop.py

-#!./parrot pynie.pbc
-
-print 'test: logical AND true'
-if 1 and 2 and 3:
-    print 'success: logical AND true'
-else:
-    print 'failure: logical AND true'
-
-print 'test: logical AND false'
-if 0 and 1 and 2:
-    print 'failure: logical AND false'
-else:
-    print 'success: logical AND false'
-
-print 'test: logical OR true'
-if 0 or 1 or 2:
-    print 'success: logical OR true'
-else:
-    print 'failure: logical OR true'
-
-print 'test: logical OR false'
-if 0 or 0 or 0:
-    print 'failure: logical OR false'
-else:
-    print 'success: logical OR false'
-
-print 'test: logical NOT true'
-if not 0:
-    print 'success: logical NOT true'
-else:
-    print 'failure: logical NOT true'
-
-print 'test: logical NOT false'
-if not 1:
-    print 'failure: logical NOT false'
-else:
-    print 'success: logical NOT false'
-
-print 'test: logical OR/AND precedence'
-if 1 or 0 and 0:   # and should be tighter than or
-    print 'success: logical OR/AND precedence'
-else:
-    print 'failure: logical OR/AND precedence'
-
-print 'test: logical ops parentheses'
-if (1 or 0) and 0:   # test parentheses
-    print 'failure: logical ops parentheses'
-else:
-    print 'success: logical ops parentheses'
-
-print 'test: double NOT'
-#if not not 1:
-#   print 'success: double NOT'
-#else:
-#   print 'failure: double NOT'
-print 'xfail: double NOT ['
-print 'fix double nots'
-print ']'

File Lib/test/parrot/12-try.py

-#!./parrot pynie.pbc
-
-print 'test: catch exception'
-try:
-    x = 1
-    raise Exception
-except:
-    x = 2
-if x == 2: print 'success: catch exception'
-else: print 'failure: catch exception'
-
-print 'test: no exception'
-try:
-    x = 1
-except:
-    x = 2
-if x == 1: print 'success: no exception'
-else: print 'failure: no exception'
-
-# make sure asserts are on
-# XXX in real Python, you can't set __debug__
-# fix this test so it doesn't either
-
-__debug__ = 1
-
-print 'test: assert false'
-try:
-    x = 1
-    assert 0
-except:
-    x = 2
-if x == 2: print 'success: assert false'
-else: print 'failure: assert false'
-
-print 'test: assert true'
-try:
-    x = 1
-    assert 1
-except:
-    x = 2
-if x == 1: print 'success: assert true'
-else: print 'failure: assert true'
-
-print 'test: assert false, no debug'
-__debug__ = 0
-try:
-    x = 1
-    assert 0
-except:
-    x = 2
-if x == 1: print 'success: assert false, no debug'
-else: print 'failure: assert false, no debug'

File Lib/test/parrot/13-builtins.py

-#!./parrot pynie.pbc
-
-#len
-print 'test: len'
-n = len([1,2,3,4])
-if n == 4: print 'success: len'
-else: print 'failure: len'
-
-#list
-print 'test: list'
-lst1 = [ 1,2,3,4 ]
-lst2 = list(lst1)
-lst1.pop()
-lst1.pop()
-lst1.pop()
-lst1.pop()
-if lst2[2] == 3: print 'success: list'
-else: print 'failure: list'
-
-#range
-print 'test: range'
-lst = range(4)
-ok = 0
-n = -1
-for i in lst:
-    n += 1
-    if n == i: ok += 1
-if ok == 4: print 'success: range'
-else: print 'failure: range'
-
-#str
-print 'test: str'
-if str(5) == '5': print 'success: str'
-else: print 'failure: str'
-
-print 'test: len/str'
-if len(str(861)) == 3: print 'success: len/str'
-else: print 'failure: len/str'

File Lib/test/parrot/builtins.py

+#!./parrot pynie.pbc
+
+#len
+print 'test: len'
+n = len([1,2,3,4])
+if n == 4: print 'success: len'
+else: print 'failure: len'
+
+#list
+print 'test: list'
+lst1 = [ 1,2,3,4 ]
+lst2 = list(lst1)
+lst1.pop()
+lst1.pop()
+lst1.pop()
+lst1.pop()
+if lst2[2] == 3: print 'success: list'
+else: print 'failure: list'
+
+#range
+print 'test: range'
+lst = range(4)
+ok = 0
+n = -1
+for i in lst:
+    n += 1
+    if n == i: ok += 1
+if ok == 4: print 'success: range'
+else: print 'failure: range'
+
+#str
+print 'test: str'
+if str(5) == '5': print 'success: str'
+else: print 'failure: str'
+
+print 'test: len/str'
+if len(str(861)) == 3: print 'success: len/str'
+else: print 'failure: len/str'

File Lib/test/parrot/control-flow.py

+#!./parrot pynie.pbc
+
+# if
+
+print 'test: if true'
+if 1: print 'success: if true'
+else: print 'failure: if true'
+
+print 'test: if false'
+if 0: print 'failure: if false'
+else: print 'success: if false'
+
+print 'test: elif true'
+if 0: print 'failure: elif true'
+elif 1: print 'success: elif true'
+
+print 'test: elif false'
+if 0: print 'failure: elif false'
+elif 0: print 'failure: elif false'
+else: print 'success: elif false'
+
+# while
+
+i=5
+while i < 7:
+    print 'test:', i
+    print 'success:', i
+    i=i+1
+
+print 'test: while count'
+if i == 7: print 'success: while count'
+else: print 'failure: while count'
+
+print 'test: while false'
+while 0:
+    print 'failure: while false'
+else:
+    print 'success: while false'
+
+# for
+
+print 'test: for list literal'
+n = 0
+compare = 1
+for i in [ 1,2,3,4 ]:
+    n += 1
+    if i != n: compare = 0
+if compare: print 'success: for list literal'
+else: print 'failure: for list literal'
+
+print 'test: for list assign'
+lst = [ 1,2,3,4 ]
+n = 0
+compare = 1
+for i in lst:
+    n += 1
+    if i != n: compare = 0
+if compare: print 'success: for list assign'
+else: print 'failure: for list assign'
+
+print 'test: for list bare'
+n = 0
+compare = 1
+for i in 1,2,3,4:
+    n += 1
+    if i != n: compare = 0
+if compare: print 'success: for list bare'
+else: print 'failure: for list bare'
+
+print 'test: nested fors'
+lst = [ ]
+for i in range(3):
+    # XXX ResizablePMCArray has a 'push' method, use list.append
+    for j in range(3):
+        lst.push((i + 1) * (j + 1))
+compare = 1
+lst2 = [ 1, 2, 3,  2, 4, 6,  3, 6, 9 ]
+for i in range(9):
+    if lst[i] != lst2[i]: compare = 0
+if compare: print 'success: nested fors'
+else: print 'failure: nested fors'
+
+print 'test: multiple iterators'
+#compare = 0
+#for i, j in ( (0, 0), (1, 2), (2, 4) ):
+#    if j == i * 2: compare += 1
+#if compare == 3: print 'success: multiple iterators'
+#else: print 'failure: multiple iterators'
+print 'xfail: multiple iterators ['
+print 'multiple iterators not implemented yet'
+print ']'
+
+print 'test: nested scopes'
+i = 4
+if 0:
+    if 0: pass
+    i = 2
+if i == 2: print 'failure: nested scopes'
+else: print 'success: nested scopes'

File Lib/test/parrot/exceptions.py

+#!./parrot pynie.pbc
+
+print 'test: catch exception'
+try:
+    x = 1
+    raise Exception
+except:
+    x = 2
+if x == 2: print 'success: catch exception'
+else: print 'failure: catch exception'
+
+print 'test: no exception'
+try:
+    x = 1
+except:
+    x = 2
+if x == 1: print 'success: no exception'
+else: print 'failure: no exception'
+
+# make sure asserts are on
+# XXX in real Python, you can't set __debug__
+# fix this test so it doesn't either
+
+__debug__ = 1
+
+print 'test: assert false'
+try:
+    x = 1
+    assert 0
+except:
+    x = 2
+if x == 2: print 'success: assert false'
+else: print 'failure: assert false'
+
+print 'test: assert true'
+try:
+    x = 1
+    assert 1
+except:
+    x = 2
+if x == 1: print 'success: assert true'
+else: print 'failure: assert true'
+
+print 'test: assert false, no debug'
+__debug__ = 0
+try:
+    x = 1
+    assert 0
+except:
+    x = 2
+if x == 1: print 'success: assert false, no debug'
+else: print 'failure: assert false, no debug'

File Lib/test/parrot/functions.py

+#!./parrot pynie.pbc
+
+print 'test: define and call a function'
+
+def x():
+ print "success: define and call a function"
+
+x()
+
+print 'test: a function with arguments'
+
+def y(a,b,c):
+ pass
+
+y(1,2,3)
+
+print 'success: a function with arguments'

File Lib/test/parrot/lists.py

+#!./parrot
+
+
+print 'test: one element list'
+a = ["parrot"]
+if a: print 'success: one element list'
+else: print 'failure: one element list'
+
+print 'test: two element list'
+b = ["success: two element list", ["success: subelement"]]
+print b[0]
+print 'test: subelement'
+print b[1][0]
+
+print 'test: single item in parens'
+c = ("success: single item in parens")
+print c
+
+print 'test: single item with comma'
+d = ("success: single item with comma",)
+print d[0]

File Lib/test/parrot/literals.py

+#!./parrot pynie.pbc
+
+# check literals
+
+print 'test: integer literals'
+0
+1
+12
+
+#123l
+#1234L
+print 'success: integer literals'
+
+
+
+print 'test: octal literals'
+01
+02
+03
+04
+05
+06
+07
+print 'success: octal literals'
+
+
+print 'test: hex literals'
+0x1
+0x2
+0x3
+0x4
+0x5
+0x6
+0x7
+0x8
+0x9
+0xa
+0xA
+0xb
+0xB
+0xc
+0xC
+0xd
+0xD
+0xe
+0xE
+0xf
+0xF
+0xdeadbeef
+print 'success: hex literals'
+
+print 'test: floating point literals'
+#3.14
+#10.
+#.001
+#1e100
+#
+#3.14e-10
+#0e0
+#0E0
+#
+print 'success: floating point literals'
+
+
+print 'test:',
+print 4
+print 'success:',
+print 4
+
+
+print 'test: imaginary literals'
+#3.14j
+#10.j
+#10j
+#.001j
+#1e100j
+#3.14e-10j
+#1J
+print 'success: imaginary literals'

File Lib/test/parrot/op-assign.py

+#!./parrot pynie.pbc
+
+# check augmented assignment ops
+
+print 'test: plus assign'
+i = 0
+i += 10
+if i == 10: print 'success: plus assign'
+else: print 'failure: plus assign'
+
+print 'test: minus assign'
+i = 10
+i -= 5
+if i == 5: print 'success: minus assign'
+else: print 'failure: minus assign'
+
+print 'test: multiply assign'
+i = -5
+i *= 2
+if i == -10: print 'success: multiply assign'
+else: print 'failure: multiply assign'
+
+print 'test: divide assign'
+i = 10
+i /= 2
+if i == 5: print 'success: divide assign'
+else: print 'failure: divide assign'
+
+print 'test: modulus assign'
+i = 10
+i %= 4
+if i == 2: print 'success: modulus assign'
+else: print 'failure: modulus assign'
+
+print 'test: exponent assign'
+#i = 3
+#i **= 3
+#if i == 27: print 'success: exponent assign'
+#else: print 'failure exponent assign'
+print 'xfail: exponent assign ['
+print 'implement **='
+print ']'
+
+print 'test: right shift assign'
+i = 128
+i >>= 2
+if i == 32: print 'success: right shift assign'
+else: print 'failure: right shift assign'
+
+print 'test: left shift assign'
+i = 1
+i <<= 10
+if i == 1024: print 'success: left shift assign'
+else: print 'failure: left shift assign'
+
+print 'test: bitwise AND assign'
+i = 0x55
+i &= 0x1f
+if i == 0x15: print 'success: bitwise AND assign'
+else: print 'failure: bitwise AND assign'
+
+print 'test: bitwise XOR assign'
+i = 0x55
+i ^= 0x1f
+if i == 0x4a: print 'success: bitwise XOR assign'
+else: print 'failure: bitwise XOR assign'
+
+print 'test: bitwise OR assign'
+i = 0x55
+i |= 0x1f
+if i == 0x5f: print 'success: bitwise OR assign'
+else: print 'failure: bitwise OR assign'

File Lib/test/parrot/op-bitwise.py

+#!./parrot pynie.pbc
+
+# &
+
+print 'test: 1'
+print 'success:', (0 & 0) + 1
+print 'test: 2'
+print 'success:', (1 & 0) + 2
+print 'test: 3'
+print 'success:', (0 & 1) + 3
+print 'test: 4'
+print 'success:', (1 & 1) + 3
+
+# |
+
+print 'test: 5'
+print 'success:', (0 | 0) + 5
+print 'test: 6'
+print 'success:', (1 | 0) + 5
+print 'test: 7'
+print 'success:', (0 | 1) + 6
+print 'test: 8'
+print 'success:', (1 | 1) + 7

File Lib/test/parrot/op-boolean.py

+#!./parrot pynie.pbc
+
+print 'test: logical AND true'
+if 1 and 2 and 3:
+    print 'success: logical AND true'
+else:
+    print 'failure: logical AND true'
+
+print 'test: logical AND false'
+if 0 and 1 and 2:
+    print 'failure: logical AND false'
+else:
+    print 'success: logical AND false'
+
+print 'test: logical OR true'
+if 0 or 1 or 2:
+    print 'success: logical OR true'
+else:
+    print 'failure: logical OR true'
+
+print 'test: logical OR false'
+if 0 or 0 or 0:
+    print 'failure: logical OR false'
+else:
+    print 'success: logical OR false'
+
+print 'test: logical NOT true'
+if not 0:
+    print 'success: logical NOT true'
+else:
+    print 'failure: logical NOT true'
+
+print 'test: logical NOT false'
+if not 1:
+    print 'failure: logical NOT false'
+else:
+    print 'success: logical NOT false'
+
+print 'test: logical OR/AND precedence'
+if 1 or 0 and 0:   # and should be tighter than or
+    print 'success: logical OR/AND precedence'
+else:
+    print 'failure: logical OR/AND precedence'
+
+print 'test: logical ops parentheses'
+if (1 or 0) and 0:   # test parentheses
+    print 'failure: logical ops parentheses'
+else:
+    print 'success: logical ops parentheses'
+
+print 'test: double NOT'
+#if not not 1:
+#   print 'success: double NOT'
+#else:
+#   print 'failure: double NOT'
+print 'xfail: double NOT ['
+print 'fix double nots'
+print ']'

File Lib/test/parrot/op-cmp.py

+#!./parrot pynie.pbc
+
+print 'test: 0 less than 1'
+if 0 < 1: print 'success: 0 less than 1'
+
+print 'test: 1 greater than 0'
+if 1 > 0: print 'success: 1 greater than 0'
+
+print 'test: 0 less than/equal 1'
+if 0 <= 1: print 'success: 0 less than/equal 1'
+
+print 'test: 0 less than/equal itself'
+if 0 <= 0: print 'success: 0 less than/equal itself'
+
+print 'test: 1 greater than/equal 0'
+if 1 >= 0: print 'success: 1 greater than/equal 0'
+
+print 'test: 0 greater than/equal itself'
+if 0 >= 0: print 'success: 0 greater than/equal itself'
+
+print 'test: 0 less than 1, less than 2'
+if 0 < 1 < 2: print 'success: 0 less than 1, less than 2'
+
+print 'test: 2 greater than 1, greater than 0'
+if 2 > 1 > 0: print 'success: 2 greater than 1, greater than 0'

File Lib/test/parrot/op-math.py

+#!./parrot pynie.pbc
+
+# basic math operators
+
+print 'test: 1'
+print 'success:', 0 + 1
+print 'test: 2'
+print 'success:', 1 + 1
+print 'test: 3'
+print 'success:', 4 - 1
+print 'test: 4'
+print 'success:', 2 * 2
+
+# //, << and >>  operators
+print 'test: 5'
+print 'success:', 10 // 2
+print 'test: 6'
+print 'success:', 3<<1
+print 'test: 7'
+print 'success:', 14>>1
+print 'test: 8'
+print 'success:', 0 // 1 + 8
+
+# ** operator
+print 'test: 9'
+print 'success:', 3**2
+print 'test: 10'
+print 'success:', 0**0+9
+print 'test: 11'
+print 'success:', 0**1+11
+print 'test: 12'
+print 'success:', 1**0+11
+
+# unary + and -
+print 'test: 13'
+print 'success:', +13
+print 'test: 14'
+print 'success:', -10 + 24
+print 'test: -15'
+print 'success:', -15

File Lib/test/parrot/variables.py

+#!./parrot pynie.pbc
+
+print 'test: 1'
+i=1
+print 'success:', i
+
+print 'test: 2'
+i=i+1
+print 'success:', i
+
+print 'test: 3'
+s='3'
+print 'success:', s
+
+print 'test: string 4'
+s='string 4'
+print 'success:', s
 src/parser/actions.nqp                      [pynie]
 src/parser/grammar.pg                       [pynie]
 src/parser/indent.pir                       [pynie]
-Lib/test/parrot/01-literals.py              [test]
-Lib/test/parrot/02-op-math.py               [test]
-Lib/test/parrot/03-op-logic.py              [test]
-Lib/test/parrot/05-vars.py                  [test]
-#Lib/test/parrot/06-stmts.py                 [test]
-Lib/test/parrot/07-op-cmp.py                [test]
-Lib/test/parrot/08-func.py                  [test]
-Lib/test/parrot/09-list.py                  [test]
-#Lib/test/parrot/10-augop.py                 [test]
-Lib/test/parrot/11-boolop.py                [test]
-Lib/test/parrot/12-try.py                   [test]
-#Lib/test/parrot/13-builtins.py              [test]
-Lib/test/parrot/harness                     [test]
+Lib/test/parrot/builtins.py                 [test]
+Lib/test/parrot/control-flow.py             [test]
+Lib/test/parrot/exceptions.py               [test]
+Lib/test/parrot/functions.py                [test]
+Lib/test/parrot/grammar.py                  [test]
+Lib/test/parrot/lists.py                    [test]
+Lib/test/parrot/literals.py                 [test]
+Lib/test/parrot/op-assign.py                [test]
+Lib/test/parrot/op-bitwise.py               [test]
+Lib/test/parrot/op-boolean.py               [test]
+Lib/test/parrot/op-cmp.py                   [test]
+Lib/test/parrot/op-math.py                  [test]
+Lib/test/parrot/variables.py                [test]
         """/usr/bin/parrot pynie.pbc Lib/test/parrot/simplest.py"""
 
     def test_02_literals(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/01-literals.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/literals.py"""
 
     def test_03_math_ops(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/02-op-math.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/op-math.py"""
 
     def test_04_bitwise_ops(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/03-op-logic.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/op-bitwise.py"""
 
     def test_05_variables(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/05-vars.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/variables.py"""
 
     def test_06_statements(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/06-stmts.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/control-flow.py"""
 
     def test_07_compare_ops(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/07-op-cmp.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/op-cmp.py"""
 
     def test_08_lists(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/09-list.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/lists.py"""
 
     def test_09_assign_ops(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/10-augop.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/op-assign.py"""
 
     def test_10_logic_ops(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/11-boolop.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/op-boolean.py"""
 
     def test_11_functions(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/08-func.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/functions.py"""
 
     def test_12_builtins(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/13-builtins.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/builtins.py"""
 
     def test_13_exceptions(self):
-        """/usr/bin/parrot pynie.pbc Lib/test/parrot/12-try.py"""
+        """/usr/bin/parrot pynie.pbc Lib/test/parrot/exceptions.py"""
 
     def test_math_ops_compare(self):
         """/usr/bin/parrot pynie.pbc Lib/test/parrot/op-math-compare.py"""