You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
More self-checking run tests
This commit is contained in:
BIN
test/bytecode_2.7_run/02_slice.pyc
Normal file
BIN
test/bytecode_2.7_run/02_slice.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
test/bytecode_3.2_run/02_slice.pyc
Normal file
BIN
test/bytecode_3.2_run/02_slice.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
test/bytecode_3.3_run/02_slice.pyc
Normal file
BIN
test/bytecode_3.3_run/02_slice.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
test/bytecode_3.4_run/02_slice.pyc
Normal file
BIN
test/bytecode_3.4_run/02_slice.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
test/bytecode_3.5_run/02_slice.pyc
Normal file
BIN
test/bytecode_3.5_run/02_slice.pyc
Normal file
Binary file not shown.
BIN
test/bytecode_3.6_run/02_slice.pyc
Normal file
BIN
test/bytecode_3.6_run/02_slice.pyc
Normal file
Binary file not shown.
@@ -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
|
||||||
|
@@ -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]
|
||||||
|
Reference in New Issue
Block a user