From c21bb6f17bda3e7d7630bb35763ab70d749278fa Mon Sep 17 00:00:00 2001 From: Akuli Date: Tue, 20 Feb 2024 01:41:07 +0200 Subject: [PATCH] Improve test slightly --- tests/should_succeed/compile_time_if.jou | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/should_succeed/compile_time_if.jou b/tests/should_succeed/compile_time_if.jou index 9aad81fd..563d5603 100644 --- a/tests/should_succeed/compile_time_if.jou +++ b/tests/should_succeed/compile_time_if.jou @@ -14,9 +14,15 @@ else: # Test and,or,not operators -if WINDOWS or MACOS: +if WINDOWS: def bar1() -> None: printf("One") + +if MACOS: + def bar1() -> None: + printf("One") + +if WINDOWS or MACOS: def bar2() -> None: printf("Two\n")