You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +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.
|
||||
# Mixed boolean expresions
|
||||
|
||||
b = True
|
||||
assert b, 'b = True'
|
||||
c = False
|
||||
|
@@ -1,8 +1,15 @@
|
||||
# Self-checking test.
|
||||
# Tests of Python slice operators
|
||||
|
||||
ary = [1,2,3,4,5]
|
||||
|
||||
# Forces BUILD_SLICE 2 on 3.x
|
||||
ary[:2]
|
||||
ary[2:]
|
||||
a = ary[:2]
|
||||
assert a == [1, 2]
|
||||
|
||||
a = ary[2:]
|
||||
assert a == [3, 4, 5]
|
||||
|
||||
# Forces BUILD_SLICE 3
|
||||
ary[1:4:2]
|
||||
a = ary[1:4:2]
|
||||
assert a == [2, 4]
|
||||
|
Reference in New Issue
Block a user