| // If all goes well, this test module will terminate silently. If not, it will print |
| // errors. See unary-op-test.js for debugging options if needed. |
| load("./resources/unary-op-test.js"); |
| //============================================================================ |
| // Test configuration data: |
| var operatorType = "Prefix"; |
| valueOf: function() { return 10; } |
| var negInfinity = -1 / 0; |
| '100.2', // Some random small double value. |
| '54294967296.2923', // Some random large double value. |
| generateBinaryTests(tests, opName, operatorType, "ImmediateResult", op, values); |
| generateBinaryTests(tests, opName, operatorType, "PostResult", op, values); |