Skip to content

Commit a2aef0f

Browse files
committed
fix asm2.test_memorygrowth
1 parent e792dc4 commit a2aef0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2068,10 +2068,10 @@ def test_memorygrowth(self):
20682068

20692069
if self.emcc_args and '-O2' in self.emcc_args:
20702070
# Make sure ALLOW_MEMORY_GROWTH generates different code (should be less optimized)
2071-
code_start = 'var TOTAL_MEMORY = '
2071+
code_start = 'var TOTAL_MEMORY'
20722072
fail = fail[fail.find(code_start):]
20732073
win = win[win.find(code_start):]
2074-
assert len(fail) < len(win), 'failing code - without memory growth on - is more optimized, and smaller'
2074+
assert len(fail) < len(win), 'failing code - without memory growth on - is more optimized, and smaller' + str([len(fail), len(win)])
20752075

20762076
def test_ssr(self): # struct self-ref
20772077
src = '''

0 commit comments

Comments
 (0)