Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Math/sinh/sinh-specialVals.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.sinh with special values
6 es6id: 20.2.2.31
7 ---*/
8
9 assert.sameValue(Math.sinh(NaN), Number.NaN,
10 "Math.sinh produces incorrect output for NaN");
11 assert.sameValue(Math.sinh(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY,
12 "Math.sinh should produce negative infinity for Number.NEGATIVE_INFINITY");
13 assert.sameValue(Math.sinh(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
14 "Math.sinh should produce positive infinity for Number.POSITIVE_INFINITY");
15 assert.sameValue(1 / Math.sinh(-0), Number.NEGATIVE_INFINITY,
16 "Math.sinh should produce -0 for -0");
17 assert.sameValue(1 / Math.sinh(0), Number.POSITIVE_INFINITY,
18 "Math.sinh should produce +0 for +0");