diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-19 18:39:03 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-19 18:40:56 -0700 |
commit | 759cfa2ee92cef2834d6cbf95bf69eef0bbe02b1 (patch) | |
tree | 334b116242de5814d738567b8886da32f7653507 /tests/runner.py | |
parent | 635420dac1eae4970a506ab8805500d73f6266a2 (diff) |
move lua binarytree args handling into lua script
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/tests/runner.py b/tests/runner.py index 610a39f6..8f084abf 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -13661,21 +13661,7 @@ elif 'benchmark' in str(sys.argv): def test_zzz_lua_binarytrees(self): # js version: ['binarytrees.lua', {0: 0, 1: 9.5, 2: 11.99, 3: 12.85, 4: 14.72, 5: 15.82}[arguments[0]]] - def args_processor(args): - arg = int(DEFAULT_ARG) - if arg == 0: - return args + ['0'] - elif arg == 1: - return args + ['9.5'] - elif arg == 2: - return args + ['11.99'] - elif arg == 3: - return args + ['12.85'] - elif arg == 4: - return args + ['14.72'] - elif arg == 5: - return args + ['15.82'] - self.lua('binarytrees', 'long lived tree of depth', args_processor=args_processor) + self.lua('binarytrees', 'long lived tree of depth') def test_zzz_zlib(self): src = open(path_from_root('tests', 'zlib', 'benchmark.c'), 'r').read() |