aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-10 16:31:35 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-21 10:47:40 -0800
commit5d28c31f508e2229bdcfd464c368a6d2830397b7 (patch)
tree1535ee28c1db7dad50e1e0bdbd5f7ae1282e398c
parent3b619be3184640f0867f2ef48d6774a56c694235 (diff)
update test_strings
-rwxr-xr-xtests/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 154bff3f..568ea798 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1679,14 +1679,14 @@ c5,de,15,8a
return 0;
}
'''
- for named, expected in [(0, 100), (1, 0)]:
+ for named, expected in [(0, range(100, 200)), (1, [0])]:
print named
Settings.NAMED_GLOBALS = named
self.do_run(src, '4:10,177,543,def\n4\nwowie\ntoo\n76\n5\n(null)\n/* a comment */\n// another\ntest\n', ['wowie', 'too', '74'])
if self.emcc_args == []:
gen = open(self.in_dir('src.cpp.o.js')).read()
count = gen.count('GLOBAL_BASE')
- assert count == expected
+ assert count in expected, count
print ' counted'
def test_strcmp_uni(self):