Add a test for unpack assignment

This commit is contained in:
Michael Hansen
2019-10-04 14:33:38 -07:00
parent 2e93d29233
commit 646213ef4f
10 changed files with 12 additions and 0 deletions

View File

@@ -69,3 +69,4 @@ add_dependencies(rt_test dc_test)
add_custom_target(check "${CMAKE_CURRENT_SOURCE_DIR}/tests/all_tests.sh"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
add_dependencies(check pycdc)

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

@@ -0,0 +1,7 @@
x = (1, 2, 3)
a, b, c = x
#c, b, a = (a, b, c) # This gets optimized by newer Python compilers...
x = (1,)
a, = x
#c, = (a,) # This gets optimized by newer Python compilers...

View File

@@ -0,0 +1,4 @@
x = ( 1 , 2 , 3 ) <EOL>
( a , b , c ) = x <EOL>
x = ( 1 , ) <EOL>
( a , ) = x <EOL>