Home
last modified time | relevance | path

Searched refs:isNaN (Results 1 – 25 of 526) sorted by relevance

12345678910>>...22

/third_party/jerryscript/tests/jerry/
Dglobal-parseint.js28 assert(isNaN(parseInt("AB")));
29 assert(isNaN(parseInt("")));
30 assert(isNaN(parseInt("-")));
31 assert(isNaN(parseInt("-", 11)));
36 assert(isNaN(parseInt("\u0009")));
37 assert(isNaN(parseInt("\u00A0")));
47 assert(isNaN(parseInt(bool, bool)));
48 assert(isNaN(parseInt(bool, obj)));
49 assert(isNaN(parseInt(bool, num)));
50 assert(isNaN(parseInt(bool, arr)));
[all …]
Dglobal-parsefloat.js35 assert(isNaN(parseFloat("foo1.2e3foo")));
40 assert(isNaN(parseFloat("")));
41 assert(isNaN(parseFloat(".")));
42 assert(isNaN(parseFloat("..")));
43 assert(isNaN(parseFloat("+")));
44 assert(isNaN(parseFloat("-")));
45 assert(isNaN(parseFloat("e")));
46 assert(isNaN(parseFloat("a")));
47 assert(isNaN(parseFloat("e+")));
48 assert(isNaN(parseFloat("+e-")));
[all …]
Ddate-getters.js77 assert (isNaN (d));
79 assert (isNaN (d.getFullYear()));
80 assert (isNaN (d.getUTCFullYear()));
81 assert (isNaN (d.getMonth()));
82 assert (isNaN (d.getUTCMonth()));
83 assert (isNaN (d.getDate()));
84 assert (isNaN (d.getUTCDate()));
85 assert (isNaN (d.getDay()));
86 assert (isNaN (d.getUTCDay()));
87 assert (isNaN (d.getHours()));
[all …]
Dstring-prototype-charcodeat.js35 assert(isNaN(String.prototype.charCodeAt.call(new String())));
48 assert(isNaN("hello world!".charCodeAt(-Infinity)));
50 assert(isNaN("hello world!".charCodeAt(Infinity)));
54 assert(isNaN("hello world!".charCodeAt(12)));
63 assert(isNaN("\u00A9\u006F".charCodeAt(2)));
66 assert(isNaN("hello world!".charCodeAt(-1)));
68 assert(isNaN("hello world!".charCodeAt(-9999999)));
81 assert(isNaN("hello world!".charCodeAt(4294967299)));
85 assert(isNaN(String.prototype.charCodeAt.call(undefined)));
93 assert(isNaN(String.prototype.charCodeAt.call(null, 0)));
Dregression-test-issue-1636.js16 assert(isNaN(Number("infinity")));
17 assert(isNaN(Number("InfinitY")));
18 assert(isNaN(Number("e")));
19 assert(isNaN(Number("e3")));
21 assert(isNaN(Number(".")));
22 assert(isNaN(Number(".e2")));
Ddate-setters.js229 assert (isNaN (d.setTime()));
230 assert (isNaN (d.setMilliseconds()));
231 assert (isNaN (d.setUTCMilliseconds()));
232 assert (isNaN (d.setSeconds()));
233 assert (isNaN (d.setUTCSeconds()));
234 assert (isNaN (d.setMinutes()));
235 assert (isNaN (d.setUTCMinutes()));
236 assert (isNaN (d.setHours()));
237 assert (isNaN (d.setUTCHours()));
238 assert (isNaN (d.setDate()));
[all …]
Dmath-trig.js19 assert (isNaN (Math.cos (NaN)));
22 assert (isNaN (Math.cos (Infinity)));
23 assert (isNaN (Math.cos (-Infinity)));
39 assert (isNaN (Math.sin (NaN)));
42 assert (isNaN (Math.sin (Infinity)));
43 assert (isNaN (Math.sin (-Infinity)));
Dmath-pow.js15 assert ( isNaN (Math.pow (0.0 /* any number */, NaN)) );
18 assert ( isNaN (Math.pow (NaN, 1.0 /* any non-zero number */)) );
21 assert ( isNaN (Math.pow (1.0, Infinity)) );
22 assert ( isNaN (Math.pow (1.0, -Infinity)) );
41 assert ( isNaN (Math.pow (-3, 2.5)) );
Ddate-construct.js31 assert (isNaN(d.valueOf()));
34 assert (!isNaN(d.valueOf()));
49 assert (isNaN(d.valueOf()));
52 assert (isNaN(d.valueOf()));
55 assert (isNaN(d.valueOf()));
Dmath-min.js15 assert(isNaN (Math['min'] (1.0, NaN)));
16 assert(isNaN (Math['min'] (NaN, 1.0)));
17 assert(isNaN (Math['min'] (-Infinity, NaN)));
18 assert(isNaN (Math['min'] (NaN, -Infinity)));
Dmath-max.js15 assert(isNaN (Math['max'] (1.0, NaN)));
16 assert(isNaN (Math['max'] (NaN, 1.0)));
17 assert(isNaN (Math['max'] (Infinity, NaN)));
18 assert(isNaN (Math['max'] (NaN, Infinity)));
Dsqrt.js15 assert(isNaN(Math['sqrt'] (NaN)));
16 assert(isNaN(Math['sqrt'] (-1.0)));
17 assert(isNaN(Math['sqrt'] (-Infinity)));
Dregression-test-issue-1074.js15 try { this.Date.prototype.$ (this.isNaN.length, this.String.fromCharCode.length) } catch($){}
18 try { this.isNaN (undefined) } catch($){}
20 try { this.isNaN(this.RegExp.prototype.compile(this.RegExp.prototype)) } catch($){}
Ddate-utc.js18 assert (isNaN(d));
21 assert (isNaN(d));
24 assert (isNaN(d));
/third_party/jerryscript/tests/jerry/es5.1/
Dbuiltin-prototypes.js26 assert (isNaN(Date.prototype.valueOf()));
28 assert (isNaN (Date.prototype.setTime()));
29 assert (isNaN (Date.prototype.setMilliseconds()));
30 assert (isNaN (Date.prototype.setUTCMilliseconds()));
31 assert (isNaN (Date.prototype.setSeconds()));
32 assert (isNaN (Date.prototype.setUTCSeconds()));
33 assert (isNaN (Date.prototype.setMinutes()));
34 assert (isNaN (Date.prototype.setUTCMinutes()));
35 assert (isNaN (Date.prototype.setHours()));
36 assert (isNaN (Date.prototype.setUTCHours()));
[all …]
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/
Dvalidators.dart10 !(rect.left.isNaN ||
11 rect.right.isNaN ||
12 rect.top.isNaN ||
13 rect.bottom.isNaN),
21 !(rrect.left.isNaN ||
22 rrect.right.isNaN ||
23 rrect.top.isNaN ||
24 rrect.bottom.isNaN),
31 assert(!offset.dx.isNaN && !offset.dy.isNaN,
44 assert(!radius.x.isNaN && !radius.y.isNaN,
/third_party/jerryscript/tests/jerry/es2015/
Dmath-atanh.js24 assert(isNaN(Math.atanh(NaN)));
25 assert(isNaN(Math.atanh(2)));
26 assert(isNaN(Math.atanh(44)));
27 assert(isNaN(Math.atanh(-2)));
28 assert(isNaN(Math.atanh(-13)));
Dnew-target.js59 assert (isNaN (-new.target));
154 function binary_test_2 () { assert (isNaN (new.target - 3)); }
155 function binary_test_3 () { assert (isNaN (new.target * 2)); }
156 function binary_test_4 () { assert (isNaN (new.target / 4)); }
Dmath-acosh.js24 assert(isNaN(Math.acosh(NaN)));
25 assert(isNaN(Math.acosh(0)));
26 assert(isNaN(Math.acosh(Number.NEGATIVE_INFINITY)));
Dmath-log10.js18 assert(isNaN(Math.log10(NaN)));
19 assert(isNaN(Math.log10(-42)));
20 assert(isNaN(Math.log10(-3.0)));
Dmath-log2.js18 assert(isNaN(Math.log2(NaN)));
19 assert(isNaN(Math.log2(-42)));
20 assert(isNaN(Math.log2(-3.0)));
Dmath-log1p.js23 assert(isNaN(Math.log1p(NaN)));
24 assert(isNaN(Math.log1p(-42)));
25 assert(isNaN(Math.log1p(-3.0)));
/third_party/node/deps/npm/node_modules/uid-number/
Duid-number.js21 if (!isNaN(gid)) gid = gidCache[gid] = +gid
22 if (!isNaN(uid)) uid = uidCache[uid] = +uid
54 if (isNaN(out.uid) || isNaN(out.gid)) return cb(new Error(
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dmathutil_unittest.cpp179 TEST(MathUtilTest, isNaN) in TEST() argument
181 EXPECT_TRUE(isNaN(bitCast<float>(0xffu << 23 | 1u))); in TEST()
182 EXPECT_TRUE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23 | 1u))); in TEST()
183 EXPECT_TRUE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23 | 0x400000u))); in TEST()
184 EXPECT_TRUE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23 | 0x7fffffu))); in TEST()
185 EXPECT_FALSE(isNaN(0.0f)); in TEST()
186 EXPECT_FALSE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23))); in TEST()
187 EXPECT_FALSE(isNaN(bitCast<float>(0xffu << 23))); in TEST()
/third_party/skia/third_party/externals/angle2/src/common/
Dmathutil_unittest.cpp179 TEST(MathUtilTest, isNaN) in TEST() argument
181 EXPECT_TRUE(isNaN(bitCast<float>(0xffu << 23 | 1u))); in TEST()
182 EXPECT_TRUE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23 | 1u))); in TEST()
183 EXPECT_TRUE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23 | 0x400000u))); in TEST()
184 EXPECT_TRUE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23 | 0x7fffffu))); in TEST()
185 EXPECT_FALSE(isNaN(0.0f)); in TEST()
186 EXPECT_FALSE(isNaN(bitCast<float>(1u << 31 | 0xffu << 23))); in TEST()
187 EXPECT_FALSE(isNaN(bitCast<float>(0xffu << 23))); in TEST()

12345678910>>...22