summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Math/tan/S15.8.2.18_A5.js
blob: 6aa4a76196b13898e1d0ec1cf1924918b6f0c224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: If x is -Infinity, Math.tan(x) is NaN
es5id: 15.8.2.18_A5
description: Checking if Math.tan(-Infinity) is NaN
---*/

assert.sameValue(Math.tan(-Infinity), NaN);

reportCompare(0, 0);