tests/auto/qml/ecmascripttests/test262/test/built-ins/Math/sin/zero.js
raw| 1 | // Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | es5id: 15.8.2.16_A3 |
| 6 | description: Return arg if -0 or +0 |
| 7 | ---*/ |
| 8 | |
| 9 | assert.sameValue(Math.sin(0), 0, "+0"); |
| 10 | assert.sameValue(Math.sin(-0), -0, "-0"); |