Skip to content

Commit

Permalink
Add test case for if.
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Liang <gcslyp@gmail.com>
  • Loading branch information
liangyuanpeng committed Jun 20, 2024
1 parent 53e1010 commit 515c0e8
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 is 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 is true.
nodes: []

0 comments on commit 515c0e8

Please sign in to comment.