blob: 224c986e1f497c31655802001924697aa5b8348e [file] [log] [blame]
This test checks toString() round-trip decompilation for binary and unary operators.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS decompiledFunction is 'function () { x + + y;}'
PASS decompiledFunction is 'function () { x + - y;}'
PASS decompiledFunction is 'function () { x - + y;}'
PASS decompiledFunction is 'function () { x - - y;}'
PASS decompiledFunction is 'function () { x * + y;}'
PASS decompiledFunction is 'function () { x * - y;}'
PASS decompiledFunction is 'function () { x / + y;}'
PASS decompiledFunction is 'function () { x / - y;}'
PASS decompiledFunction is 'function () { x % + y;}'
PASS decompiledFunction is 'function () { x % - y;}'
PASS decompiledFunction is 'function () { x++ + y;}'
PASS decompiledFunction is 'function () { x++ - y;}'
PASS decompiledFunction is 'function () { x++ * y;}'
PASS decompiledFunction is 'function () { x++ / y;}'
PASS decompiledFunction is 'function () { x-- + y;}'
PASS decompiledFunction is 'function () { x-- - y;}'
PASS decompiledFunction is 'function () { x-- * y;}'
PASS decompiledFunction is 'function () { x-- / y;}'
PASS decompiledFunction is 'function () { x + ++y;}'
PASS decompiledFunction is 'function () { x - ++y;}'
PASS decompiledFunction is 'function () { x * ++y;}'
PASS decompiledFunction is 'function () { x / ++y;}'
PASS decompiledFunction is 'function () { x + --y;}'
PASS decompiledFunction is 'function () { x - --y;}'
PASS decompiledFunction is 'function () { x * --y;}'
PASS decompiledFunction is 'function () { x / --y;}'
PASS decompiledFunction is 'function () { x++ + ++y;}'
PASS decompiledFunction is 'function () { x++ - ++y;}'
PASS decompiledFunction is 'function () { x++ * ++y;}'
PASS decompiledFunction is 'function () { x++ / ++y;}'
PASS decompiledFunction is 'function () { x-- + ++y;}'
PASS decompiledFunction is 'function () { x-- - ++y;}'
PASS decompiledFunction is 'function () { x-- * ++y;}'
PASS decompiledFunction is 'function () { x-- / ++y;}'
PASS decompiledFunction is 'function () { x++ + --y;}'
PASS decompiledFunction is 'function () { x++ - --y;}'
PASS decompiledFunction is 'function () { x++ * --y;}'
PASS decompiledFunction is 'function () { x++ / --y;}'
PASS decompiledFunction is 'function () { x-- + --y;}'
PASS decompiledFunction is 'function () { x-- - --y;}'
PASS decompiledFunction is 'function () { x-- * --y;}'
PASS decompiledFunction is 'function () { x-- / --y;}'
PASS decompiledFunction is 'function () { + + x;}'
PASS decompiledFunction is 'function () { + - x;}'
PASS decompiledFunction is 'function () { - + x;}'
PASS decompiledFunction is 'function () { - - x;}'
PASS decompiledFunction is 'function () { 1;}'
PASS decompiledFunction is 'function () { -1;}'
PASS decompiledFunction is 'function () { - -1;}'
PASS decompiledFunction is 'function () { - - 0;}'
PASS decompiledFunction is 'function () { - - NaN;}'
PASS successfullyParsed is true
TEST COMPLETE