Skip to content

Commit

Permalink
Add test case for if. (#1416)
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Liang <[email protected]>
  • Loading branch information
liangyuanpeng authored Jun 20, 2024
1 parent 53e1010 commit 9873aaf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/grammar/if/if_stmt/test_5/main.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_nodes=[]

if True:
print("Condition: True")
elif False:
_nodes+=[]

nodes=_nodes
2 changes: 2 additions & 0 deletions test/grammar/if/if_stmt/test_5/stdout.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Condition: True
nodes: []

0 comments on commit 9873aaf

Please sign in to comment.