19 lines
503 B
Python
19 lines
503 B
Python
from __future__ import unicode_literals
|
|
|
|
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',)}]
|
|
}
|
|
]
|