From 6c1bc8c5398b5322dc20e252f21f989c175258e3 Mon Sep 17 00:00:00 2001 From: drospierski24 Date: Wed, 23 Jul 2025 10:44:50 -0500 Subject: [PATCH] IfElseLoop test cases for fixes made on 7/21 --- test/Conditional.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/Conditional.py b/test/Conditional.py index 19302fc..1362445 100644 --- a/test/Conditional.py +++ b/test/Conditional.py @@ -302,3 +302,22 @@ def f_nofallthru_if_pass(): if a > b: pass print("end") + + +def g1_ifElseLoop(): + for a in range(3): + if a> b: + print(1) + +def g2_ifElseLoop(): + for a in range(3): + if a> b: + print(1) + print(2) + +def g3_ifElseLoop(): + for a in range(3): + if a> b: + print(1) + else: + print(2)