sulyi 3f075d87da [test] jstest fixes
* direct execution comment accidental removal
* zip type check in 'traverse'
* less convoluted 'variables' in JSInterpreter initialization
* tiny bit more meaningful log messages
* changing single letter flags to more explanatory names
* refactoring skip test logic
2016-12-27 07:10:01 +01:00

18 lines
463 B
Python

skip = {'parse': True}
tests = [
{
'code': 'return -5 + +3;',
'asserts': [{'value': -2}]
}, {
'code': 'function f() {return -5 + ++a;}',
'globals': {'a': -3},
'asserts': [{'value': -7, 'call': ('f',)}, {'value': -6, 'call': ('f',)}]
}, {
'code': 'function f() {return -5 + a++;}',
'globals': {'a': -3},
'asserts': [{'value': -8, 'call': ('f',)}, {'value': -7, 'call': ('f',)}]
}
]