tests/auto/qml/ecmascripttests/test262/test/built-ins/Math/acosh/arg-is-one.js
raw| 1 | // Copyright 2015 Microsoft Corporation. All rights reserved. |
| 2 | // This code is governed by the license found in the LICENSE file. |
| 3 | |
| 4 | /*--- |
| 5 | description: Math.acosh(1) returns +0 |
| 6 | es6id: 20.2.2.3 |
| 7 | info: | |
| 8 | Math.acosh ( x ) |
| 9 | |
| 10 | - If x is 1, the result is +0. |
| 11 | ---*/ |
| 12 | |
| 13 | assert.sameValue(Math.acosh(+1), 0, "Math.acosh should produce 0 for +1"); |