18 lines
459 B
Python
18 lines
459 B
Python
|
|
||
|
skip = {'p': 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',)}]
|
||
|
}
|
||
|
]
|