diff --git a/test/bytecode_2.7_run/02_slice.pyc b/test/bytecode_2.7_run/02_slice.pyc new file mode 100644 index 00000000..f3fd0939 Binary files /dev/null and b/test/bytecode_2.7_run/02_slice.pyc differ diff --git a/test/bytecode_3.2/02_slice.pyc b/test/bytecode_3.2/02_slice.pyc deleted file mode 100644 index da9ccee1..00000000 Binary files a/test/bytecode_3.2/02_slice.pyc and /dev/null differ diff --git a/test/bytecode_3.2_run/02_slice.pyc b/test/bytecode_3.2_run/02_slice.pyc new file mode 100644 index 00000000..b7c23102 Binary files /dev/null and b/test/bytecode_3.2_run/02_slice.pyc differ diff --git a/test/bytecode_3.3/02_slice.pyc b/test/bytecode_3.3/02_slice.pyc deleted file mode 100644 index 0d1a3d43..00000000 Binary files a/test/bytecode_3.3/02_slice.pyc and /dev/null differ diff --git a/test/bytecode_3.3_run/02_slice.pyc b/test/bytecode_3.3_run/02_slice.pyc new file mode 100644 index 00000000..94d9b3e3 Binary files /dev/null and b/test/bytecode_3.3_run/02_slice.pyc differ diff --git a/test/bytecode_3.4/02_slice.pyc b/test/bytecode_3.4/02_slice.pyc deleted file mode 100644 index fbf24a37..00000000 Binary files a/test/bytecode_3.4/02_slice.pyc and /dev/null differ diff --git a/test/bytecode_3.4_run/02_slice.pyc b/test/bytecode_3.4_run/02_slice.pyc new file mode 100644 index 00000000..f06f157a Binary files /dev/null and b/test/bytecode_3.4_run/02_slice.pyc differ diff --git a/test/bytecode_3.5/02_slice.pyc b/test/bytecode_3.5/02_slice.pyc deleted file mode 100644 index f8849007..00000000 Binary files a/test/bytecode_3.5/02_slice.pyc and /dev/null differ diff --git a/test/bytecode_3.5_run/02_slice.pyc b/test/bytecode_3.5_run/02_slice.pyc new file mode 100644 index 00000000..6e10051d Binary files /dev/null and b/test/bytecode_3.5_run/02_slice.pyc differ diff --git a/test/bytecode_3.6_run/02_slice.pyc b/test/bytecode_3.6_run/02_slice.pyc new file mode 100644 index 00000000..1fb04219 Binary files /dev/null and b/test/bytecode_3.6_run/02_slice.pyc differ diff --git a/test/simple_source/operation_logic/10_mixed_boolean.py b/test/simple_source/operation_logic/10_mixed_boolean.py index aafd2c80..d1849cda 100644 --- a/test/simple_source/operation_logic/10_mixed_boolean.py +++ b/test/simple_source/operation_logic/10_mixed_boolean.py @@ -1,4 +1,6 @@ # Self-checking test. +# Mixed boolean expresions + b = True assert b, 'b = True' c = False diff --git a/test/simple_source/slice/02_slice.py b/test/simple_source/slice/02_slice.py index 569626b6..917b3837 100644 --- a/test/simple_source/slice/02_slice.py +++ b/test/simple_source/slice/02_slice.py @@ -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]