aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A1.js
blob: 4ce7024aeda78fd7c8da7f34c93060b4a349bbe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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 NaN, Math.ceil(x) is NaN
description: Checking if Math.ceil(NaN) is NaN
---*/

// CHECK#1
var x = NaN;
if (!isNaN(Math.ceil(x)))
{
	$ERROR("#1: 'var x=NaN; isNaN(Math.ceil(x)) === false'");
}