More self-checking run tests

This commit is contained in:
rocky
2019-04-10 11:49:27 -04:00
parent 726045a05e
commit 59c77f103d
12 changed files with 12 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,6 @@
# Self-checking test. # Self-checking test.
# Mixed boolean expresions
b = True b = True
assert b, 'b = True' assert b, 'b = True'
c = False c = False

View File

@@ -1,8 +1,15 @@
# Self-checking test.
# Tests of Python slice operators # Tests of Python slice operators
ary = [1,2,3,4,5] ary = [1,2,3,4,5]
# Forces BUILD_SLICE 2 on 3.x # Forces BUILD_SLICE 2 on 3.x
ary[:2] a = ary[:2]
ary[2:] assert a == [1, 2]
a = ary[2:]
assert a == [3, 4, 5]
# Forces BUILD_SLICE 3 # Forces BUILD_SLICE 3
ary[1:4:2] a = ary[1:4:2]
assert a == [2, 4]