diff --git a/tests/should_succeed/if.jou b/tests/should_succeed/if.jou deleted file mode 100644 index cb3c6934..00000000 --- a/tests/should_succeed/if.jou +++ /dev/null @@ -1,9 +0,0 @@ -from "stdlib/io.jou" import putchar - -def main() -> int: - if True: - putchar('a') # Output: a - if False: - putchar('b') # Warning: this code will never run - putchar('\n') - return 0 diff --git a/tests/should_succeed/if_elif_else.jou b/tests/should_succeed/if_elif_else.jou index 7ac42433..78ea29ee 100644 --- a/tests/should_succeed/if_elif_else.jou +++ b/tests/should_succeed/if_elif_else.jou @@ -15,6 +15,11 @@ def foo(x: int) -> void: printf(">\n") def main() -> int: + if True: + printf("a\n") # Output: a + if False: + printf("b\n") # Warning: this code will never run + foo(12) # Output: foo(15) # Output: foo(5) # Output: