Home
last modified time | relevance | path

Searched refs:NaN (Results 1 - 25 of 265) sorted by relevance

1234567891011

/third_party/typescript/tests/baselines/reference/
H A DnanEquality.js4 if (x === NaN) {}
5 if (NaN === x) {}
7 if (x == NaN) {}
8 if (NaN == x) {}
10 if (x !== NaN) {}
11 if (NaN !== x) {}
13 if (x != NaN) {}
14 if (NaN != x) {}
16 if (x === ((NaN))) {}
17 if (((NaN))
[all...]
H A DenumConstantMembers.js27 e = NaN,
37 e = NaN,
65 E5[E5["d"] = NaN] = "d";
66 E5[E5["e"] = NaN] = "e";
/third_party/icu/vendor/double-conversion/upstream/test/cctest/
H A Dtest-conversions.cc259 CHECK(!dc5.ToShortest(Double::NaN(), &builder)); in TEST()
262 CHECK(!dc5.ToShortest(-Double::NaN(), &builder)); in TEST()
264 DoubleToStringConverter dc6(flags, "Infinity", "NaN", 'e', 0, 0, 0, 0); in TEST()
275 CHECK(dc6.ToShortest(Double::NaN(), &builder)); in TEST()
276 CHECK_EQ("NaN", builder.Finalize()); in TEST()
279 CHECK(dc6.ToShortest(-Double::NaN(), &builder)); in TEST()
280 CHECK_EQ("NaN", builder.Finalize()); in TEST()
415 CHECK(!dc5.ToShortestSingle(Single::NaN(), &builder)); in TEST()
418 CHECK(!dc5.ToShortestSingle(-Single::NaN(), &builder)); in TEST()
420 DoubleToStringConverter dc6(flags, "Infinity", "NaN", ' in TEST()
[all...]
/third_party/jerryscript/tests/jerry/
H A Ddate-tostring.js15 assert (new Date (NaN) == "Invalid Date");
19 assert (new Date (NaN, 1, 1, 0, 0, 0) == "Invalid Date");
20 assert (new Date (2015, NaN, 1, 0, 0, 0) == "Invalid Date");
21 assert (new Date (2015, 7, 1, 0, NaN, 0) == "Invalid Date");
45 assert (new Date (NaN).toDateString () == "Invalid Date");
59 assert (new Date (NaN).toTimeString () == "Invalid Date");
79 new Date (NaN).toISOString ();
107 assert (new Date (NaN).toUTCString () == "Invalid Date");
121 assert (new Date (NaN).toJSON () == null);
142 assert (Date (Number.NaN)
[all...]
H A Dmath-abs.js15 var nan = NaN;
21 assert (isNaN(Math['abs'](NaN)));
H A Dmath-round.js15 var nan = NaN;
21 assert (isNaN(Math['round'](NaN)));
/third_party/decimal.js/test/modules/
H A DintPow.js32 t('NaN', 2, NaN);
33 t('NaN', +0, NaN);
34 t('NaN', -0, NaN);
35 t('NaN', Infinity, NaN);
36 t('NaN', -Infinity, NaN);
[all...]
H A DdpSd.js27 t(NaN, NaN, NaN);
28 t(Infinity, NaN, NaN);
29 t(-Infinity, NaN, NaN);
H A Dsum.js38 expected = new Decimal(NaN);
40 t(NaN);
41 t('1', NaN);
42 t(100, 200, NaN);
43 t(NaN, 0, '9', new Decimal(0), 11, Infinity);
44 t(0, new Decimal('-Infinity'), '9', new Decimal(NaN), 11);
H A DtoNearest.js36 t('NaN', NaN);
37 t('NaN', NaN, NaN);
38 t('NaN', NaN, Infinity);
39 t('NaN', NaN, -Infinity);
40 t('NaN', Na
[all...]
H A Ddiv.js40 t(1, NaN, 'NaN');
41 t(-1, NaN, 'NaN');
42 t(0, 0, 'NaN');
43 t(0, -0, 'NaN');
44 t(-0, 0, 'NaN');
45 t(-0, -0, 'NaN');
46 t(0, NaN, 'NaN');
[all...]
H A DtoNumber.js46 t(NaN, NaN);
47 t('NaN', NaN);
H A Dconfig.js122 tx(function () {Decimal.config({precision: NaN})}, "precision: NaN");
160 tx(function () {Decimal.config({rounding: NaN})}, "rounding : NaN");
186 tx(function () {Decimal.config({toExpNeg: NaN})}, "toExpNeg: NaN");
213 tx(function () {Decimal.config({toExpPos: NaN})}, "toExpPos: NaN");
240 tx(function () {Decimal.config({maxE: NaN})}, "maxE: NaN");
[all...]
H A Dtimes.js18 t(1, NaN, 'NaN');
19 t(-1, NaN, 'NaN');
24 t(0, 'NaN', 'NaN');
25 t(-0, 'NaN', 'NaN');
26 t(0, 'Infinity', 'NaN');
27 t(0, '-Infinity', 'NaN');
[all...]
/third_party/node/deps/v8/src/compiler/
H A Dtype-cache.h63 Type::NaN(), zone());
65 Type const kZeroOrOneOrNaN = Type::Union(kZeroOrOne, Type::NaN(), zone());
74 Type::Union(kIntegerOrMinusZero, Type::NaN(), zone());
79 Type::Union(kPositiveInteger, Type::NaN(), zone());
81 Type::Union(kPositiveIntegerOrMinusZero, Type::NaN(), zone());
139 // [1, 31] or NaN.
141 Type::Union(CreateRange(1, 31.0), Type::NaN(), zone());
144 // [0, 23] or NaN.
146 Type::Union(CreateRange(0, 23.0), Type::NaN(), zone());
149 // [0, 59] or NaN
[all...]
H A Doperation-typer.cc139 // Returns the array's least element, ignoring NaN.
140 // There must be at least one non-NaN element.
154 // Returns the array's greatest element, ignoring NaN.
155 // There must be at least one non-NaN element.
186 if (nans == 4) return Type::NaN(); in AddRanger()
188 if (nans > 0) type = Type::Union(type, Type::NaN(), zone()); in AddRanger()
190 // [-inf, -inf] + [+inf, +inf] = NaN in AddRanger()
191 // [-inf, -inf] + [n, +inf] = [-inf, -inf] \/ NaN in AddRanger()
192 // [-inf, +inf] + [n, +inf] = [-inf, +inf] \/ NaN in AddRanger()
193 // [-inf, m] + [n, +inf] = [-inf, +inf] \/ NaN in AddRanger()
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
H A DSampleNaNs.cs42 public static double Regular { get; } = double.NaN;
44 // Signalling bit is inverted compared with double.NaN. Doesn't really matter
47 BitConverter.Int64BitsToDouble(BitConverter.DoubleToInt64Bits(double.NaN) ^ -0x8000_0000_0000_0000L);
51 BitConverter.Int64BitsToDouble(BitConverter.DoubleToInt64Bits(double.NaN) ^ 0x1_0000_0000L);
/third_party/node/test/parallel/
H A Dtest-fs-read-stream-throw-type-error.js49 // Case 2: Should throw RangeError if either start or end is NaN
50 [{ start: NaN }, { end: NaN }, { start: NaN, end: NaN }].forEach((opts) =>
/third_party/node/test/sequential/
H A Dtest-crypto-timing-safe-equal.js50 test(new Float32Array([NaN]), new Float32Array([NaN]), {
63 test(new Float64Array(x.buffer), new Float64Array([NaN, NaN]), {
/third_party/node/test/fixtures/wpt/wasm/jsapi/
H A Dbad-imports.js24 for (const value of [null, true, "", Symbol(), 1, 0.1, NaN]) {
31 for (const value of [undefined, null, true, "", Symbol(), 1, 0.1, NaN]) {
58 for (const value of [undefined, null, true, "", Symbol(), 1, 0.1, NaN, {}]) {
136 [NaN],
165 [NaN],
/third_party/jerryscript/tests/jerry-test-suite/11/11.06/11.06.03/
H A D11.06.03-002.js16 assert(isNaN(obj + NaN) && isNaN(NaN + obj)
H A D11.06.03-003.js16 assert(isNaN(obj - NaN) && isNaN(NaN - obj)
/third_party/jerryscript/tests/jerry/es2015/
H A Dmath-sign.js15 var nan = NaN;
19 assert (isNaN(Math['sign'](NaN)));
H A Dmath-asinh.js15 var nan = NaN;
24 assert(isNaN(Math.asinh(NaN)));
H A Dmath-acosh.js15 var nan = NaN;
24 assert(isNaN(Math.acosh(NaN)));

Completed in 7 milliseconds

1234567891011