aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index bc883766..42a63afc 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1010,8 +1010,7 @@ if 'benchmark' not in sys.argv:
int ScriptMe::mulVal(int mul) { value *= mul; }
'''
script_src = '''
- var sme = Module._.ScriptMe.__alloc__(); // malloc(sizeof(ScriptMe))
- Module._.ScriptMe.ScriptMe(sme, 83); // ScriptMe::ScriptMe(sme, 83) new ScriptMe(83) (at addr sme)
+ var sme = Module._.ScriptMe.__new__(83); // malloc(sizeof(ScriptMe)), ScriptMe::ScriptMe(sme, 83) / new ScriptMe(83) (at addr sme)
Module._.ScriptMe.mulVal(sme, 2); // ScriptMe::mulVal(sme, 2) sme.mulVal(2)
print('*' + Module._.ScriptMe.getVal(sme) + '*');
Module._free(sme);