diff options
-rwxr-xr-x | tests/runner.py | 4 |
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): |