Skip to content

Commit 6d25eae

Browse files
committed
133: Finished tests
1 parent b52a870 commit 6d25eae

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/cfg/cfg_test.py

+13
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,19 @@ def test_while_func_comparator(self):
701701

702702
self.assertEqual(self.cfg.nodes[test].label, 'while foo():')
703703

704+
self.assertInCfg([
705+
(test, entry),
706+
(entry_foo, test),
707+
(_print, test),
708+
(_exit, test),
709+
(body_1, _print),
710+
(test, body_1),
711+
(test, call_foo),
712+
(ret_foo, entry_foo),
713+
(exit_foo, ret_foo),
714+
(call_foo, exit_foo)
715+
])
716+
704717
def test_while_func_comparator_rhs(self):
705718
self.cfg_create_from_file('examples/example_inputs/while_func_comparator_rhs.py')
706719

0 commit comments

Comments
 (0)