From 169515126784425df7b6fcd0a78ee5eb7dd84788 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 7 May 2014 21:38:13 +0300 Subject: [PATCH] tests/bench: Add variation on loop_count/while_down_ne test. --- tests/bench/loop_count-5.1-while_down_ne_localvar.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/bench/loop_count-5.1-while_down_ne_localvar.py diff --git a/tests/bench/loop_count-5.1-while_down_ne_localvar.py b/tests/bench/loop_count-5.1-while_down_ne_localvar.py new file mode 100644 index 0000000000..96bdb9129f --- /dev/null +++ b/tests/bench/loop_count-5.1-while_down_ne_localvar.py @@ -0,0 +1,8 @@ +import bench + +def test(num): + zero = 0 + while num != zero: + num -= 1 + +bench.run(test)