diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-31 16:45:24 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-31 16:45:24 -0800 |
commit | cce607aeefa5c052395299ad929a55e431e0c349 (patch) | |
tree | 8d9567128a74e22a84128d1d9ab8838c555a67a4 | |
parent | 68b84c996801f507d2252947728e090bd3c98e35 (diff) |
fix test_strings
-rwxr-xr-x | tests/runner.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/runner.py b/tests/runner.py index 2290b206..61c8c0a2 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -1763,15 +1763,14 @@ Succeeded! return 0; } ''' - for named, expected in [(0, range(100, 200)), (1, [0])]: + for named in (0, 1): 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 in expected, count - print ' counted' + assert ('var __str1;' in gen) == named + assert (gen.count('ALLOC_NONE') < 8) == named def test_strcmp_uni(self): src = ''' |