diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Math/acosh/arg-is-infinity.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Math/acosh/arg-is-infinity.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Math/acosh/arg-is-infinity.js b/js/src/tests/test262/built-ins/Math/acosh/arg-is-infinity.js new file mode 100644 index 0000000000..087498f3f1 --- /dev/null +++ b/js/src/tests/test262/built-ins/Math/acosh/arg-is-infinity.js @@ -0,0 +1,16 @@ +// Copyright (C) 2016 The V8 Project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-math.acosh +description: > + Return Infinity if x is Infinity +info: | + Math.acosh ( x ) + + If x is +∞, the result is +∞. +---*/ + +assert.sameValue(Math.acosh(Infinity), Infinity); + +reportCompare(0, 0); |