From a7f4d76ad01b47d238633a23bf468020839ee904 Mon Sep 17 00:00:00 2001 From: fnhartmann Date: Thu, 16 Nov 2023 10:26:48 +0100 Subject: [PATCH] Fix comments --- .../test_readability_based_refinement.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/pipeline/controlflowanalysis/test_readability_based_refinement.py b/tests/pipeline/controlflowanalysis/test_readability_based_refinement.py index 192507f5b..4723237e5 100644 --- a/tests/pipeline/controlflowanalysis/test_readability_based_refinement.py +++ b/tests/pipeline/controlflowanalysis/test_readability_based_refinement.py @@ -852,7 +852,7 @@ def test_separated_by_loop_node_4(self, ast_while_in_else): def test_for_loop_recovery_if_continue_in_while_1(self): """ - Test for loop recovery if a continue occurs in a while loop and the last definition is a simple binary operation + Test for loop recovery if a continue occurs in a while loop and the last definition is a simple binary operation. a = 0 while(a < 10) { @@ -911,7 +911,7 @@ def test_for_loop_recovery_if_continue_in_while_1(self): def test_for_loop_recovery_if_continue_in_while_2(self): """ - Test for loop recovery if a continue occurs in a while loop and the last definition is a contant assignment + Test for loop recovery if a continue occurs in a while loop and the last definition is a constant. a = 0 while(a < 10) { @@ -1167,6 +1167,8 @@ def test_for_loop_recovery_if_continue_in_while_5(self): def test_for_loop_recovery_if_continue_in_nested_while(self): """ + Test for loop recovery if a continue occurs in a nested while loop and the last definition is a simple binary operation. + while(a < 5) { a = a + b while(b < 10) { @@ -1240,7 +1242,7 @@ def test_for_loop_recovery_if_continue_in_nested_while(self): def test_skip_for_loop_recovery_if_continue_in_while_1(self): """ - Test skip of for loop recovery if a continue occurs in a while loop, because the continuation instruction is no simple binary operation + Test skip of for loop recovery if a continue occurs in a while loop, because the continuation instruction is no simple binary operation. a = 0 while(a < 10) { @@ -1290,7 +1292,7 @@ def test_skip_for_loop_recovery_if_continue_in_while_1(self): def test_skip_for_loop_recovery_if_continue_in_while_2(self): """ - Test skip of for loop recovery if a continue occurs in a while loop, because the last definition is no simple binary operation + Test skip of for loop recovery if a continue occurs in a while loop, because the last definition is no simple binary operation. a = 0 while(a < 10) { @@ -1340,7 +1342,7 @@ def test_skip_for_loop_recovery_if_continue_in_while_2(self): def test_skip_for_loop_recovery_if_continue_in_while_3(self): """ - Test skip of for loop recovery if a continue occurs in a while loop, because no last definition exists + Test skip of for loop recovery if a continue occurs in a while loop, because no last definition exists. a = 0 while(a < 10) { @@ -1387,8 +1389,8 @@ def test_skip_for_loop_recovery_if_continue_in_while_3(self): def test_skip_for_loop_recovery_if_continue_in_while_4(self): """ - Test skip of for loop recovery if a continue occurs in a while loop, the continuation-statement and the last definition - uses different variables. + Test skip of for loop recovery if a continue occurs in a while loop and the continuation-statement and the last definition + use different variables. a = 0 while(a < 10){