You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Add spark option to show grammer. Revise uncompyle options. Start to reorganize
tests more
This commit is contained in:
7
test/simple_source/branching/05_if.py
Normal file
7
test/simple_source/branching/05_if.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# Tests:
|
||||
|
||||
# ifstmt ::= testexpr _ifstmts_jump
|
||||
# _ifstmts_jump ::= c_stmts_opt JUMP_FORWARD COME_FROM
|
||||
|
||||
if True:
|
||||
b = False
|
9
test/simple_source/branching/05_ifelse.py
Normal file
9
test/simple_source/branching/05_ifelse.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# Tests:
|
||||
|
||||
# ifelsestmt ::= testexpr c_stmts_opt JUMP_FORWARD else_suite COME_FROM
|
||||
# else_suite ::= suite_stmts
|
||||
|
||||
if True:
|
||||
b = 1
|
||||
else:
|
||||
d = 2
|
@@ -1,4 +0,0 @@
|
||||
# Tests:
|
||||
# ifstmt ::= testexpr _ifstmts_jump
|
||||
if a:
|
||||
b = c
|
@@ -1,7 +0,0 @@
|
||||
|
||||
# Tests
|
||||
# ifelsestmt ::= testexpr c_stmts_opt JUMP_FORWARD else_suite COME_FROM
|
||||
if a:
|
||||
b = c
|
||||
else:
|
||||
d = e
|
Reference in New Issue
Block a user