diff --git a/test/grammar/if/if_stmt/test_5/main.k b/test/grammar/if/if_stmt/test_5/main.k new file mode 100644 index 000000000..a14fd4696 --- /dev/null +++ b/test/grammar/if/if_stmt/test_5/main.k @@ -0,0 +1,8 @@ +_nodes=[] + +if True: + print("Condition is true.") +elif False: + _nodes+=[] + +nodes=_nodes diff --git a/test/grammar/if/if_stmt/test_5/stdout.golden b/test/grammar/if/if_stmt/test_5/stdout.golden new file mode 100644 index 000000000..cf864e293 --- /dev/null +++ b/test/grammar/if/if_stmt/test_5/stdout.golden @@ -0,0 +1,2 @@ +Condition is true. +nodes: []