/third_party/typescript/tests/baselines/reference/ |
H A D | nanEquality.js | 4 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 D | enumConstantMembers.js | 27 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 D | test-conversions.cc | 259 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 D | date-tostring.js | 15 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 D | math-abs.js | 15 var nan = NaN; 21 assert (isNaN(Math['abs'](NaN)));
|
H A D | math-round.js | 15 var nan = NaN; 21 assert (isNaN(Math['round'](NaN)));
|
/third_party/decimal.js/test/modules/ |
H A D | intPow.js | 32 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 D | dpSd.js | 27 t(NaN, NaN, NaN); 28 t(Infinity, NaN, NaN); 29 t(-Infinity, NaN, NaN);
|
H A D | sum.js | 38 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 D | toNearest.js | 36 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 D | div.js | 40 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 D | toNumber.js | 46 t(NaN, NaN); 47 t('NaN', NaN);
|
H A D | config.js | 122 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 D | times.js | 18 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 D | type-cache.h | 63 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 D | operation-typer.cc | 139 // 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 D | SampleNaNs.cs | 42 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 D | test-fs-read-stream-throw-type-error.js | 49 // 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 D | test-crypto-timing-safe-equal.js | 50 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 D | bad-imports.js | 24 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 D | 11.06.03-002.js | 16 assert(isNaN(obj + NaN) && isNaN(NaN + obj)
|
H A D | 11.06.03-003.js | 16 assert(isNaN(obj - NaN) && isNaN(NaN - obj)
|
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | math-sign.js | 15 var nan = NaN; 19 assert (isNaN(Math['sign'](NaN)));
|
H A D | math-asinh.js | 15 var nan = NaN; 24 assert(isNaN(Math.asinh(NaN)));
|
H A D | math-acosh.js | 15 var nan = NaN; 24 assert(isNaN(Math.acosh(NaN)));
|