Skip to content

Commit 5d28c31

Browse files
committed
update test_strings
1 parent 3b619be commit 5d28c31

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,14 +1679,14 @@ def test_strings(self):
16791679
return 0;
16801680
}
16811681
'''
1682-
for named, expected in [(0, 100), (1, 0)]:
1682+
for named, expected in [(0, range(100, 200)), (1, [0])]:
16831683
print named
16841684
Settings.NAMED_GLOBALS = named
16851685
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'])
16861686
if self.emcc_args == []:
16871687
gen = open(self.in_dir('src.cpp.o.js')).read()
16881688
count = gen.count('GLOBAL_BASE')
1689-
assert count == expected
1689+
assert count in expected, count
16901690
print ' counted'
16911691

16921692
def test_strcmp_uni(self):

0 commit comments

Comments
 (0)