/external/v8/test/mjsunit/ |
D | math-pow.js | 41 assertEquals(NaN, Math.pow(2, NaN)); 42 assertEquals(NaN, Math.pow(+0, NaN)); 43 assertEquals(NaN, Math.pow(-0, NaN)); 44 assertEquals(NaN, Math.pow(Infinity, NaN)); 45 assertEquals(NaN, Math.pow(-Infinity, NaN)); 47 assertEquals(1, Math.pow(NaN, +0)); 48 assertEquals(1, Math.pow(NaN, -0)); 50 assertEquals(NaN, Math.pow(NaN, NaN)); 51 assertEquals(NaN, Math.pow(NaN, 2.2)); 52 assertEquals(NaN, Math.pow(NaN, 1)); [all …]
|
D | compare-nan.js | 28 var a = [NaN, -1, 0, 1, 1.2, -7.9, true, false, 'foo', '0', 'NaN' ]; 31 assertFalse(NaN == x, "NaN == " + x); 32 assertFalse(NaN === x, "NaN === " + x); 33 assertFalse(NaN < x, "NaN < " + x); 34 assertFalse(NaN > x, "NaN > " + x); 35 assertFalse(NaN <= x, "NaN <= " + x); 36 assertFalse(NaN >= x, "NaN >= " + x); 38 assertFalse(x == NaN, "" + x + " == NaN"); 39 assertFalse(x === NaN, "" + x + " === NaN"); 40 assertFalse(x < NaN, "" + x + " < NaN"); [all …]
|
D | samevalue.js | 44 assertTrue(natives.SameValue(NaN, NaN)); 61 assertFalse(natives.SameValue(obj1, NaN)); 67 assertFalse(natives.SameValue(undefined, NaN)); 69 assertFalse(natives.SameValue(NaN, true)); 70 assertFalse(natives.SameValue(NaN, "foo")); 71 assertFalse(natives.SameValue(NaN, 1)); 72 assertFalse(natives.SameValue(NaN, obj1)); 73 assertFalse(natives.SameValue(NaN, undefined)); 79 assertFalse(natives.SameValue("foo", NaN)); 84 assertFalse(natives.SameValue(true, NaN)); [all …]
|
D | math-min-max.js | 79 assertEquals(NaN, Math.min('oxen')); 80 assertEquals(NaN, Math.min('oxen', 1)); 81 assertEquals(NaN, Math.min(1, 'oxen')); 112 assertEquals(NaN, Math.max('oxen')); 113 assertEquals(NaN, Math.max('oxen', 1)); 114 assertEquals(NaN, Math.max(1, 'oxen')); 161 assertEquals(NaN, Math.max(NaN, v8)); 162 assertEquals(NaN, Math.min(NaN, v9)); 163 assertEquals(NaN, Math.max(v8, NaN)); 164 assertEquals(NaN, Math.min(v9, NaN));
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
D | 11.5.3.js | 84 … new TestCase( SECTION, "Number.NaN % Number.NaN", Number.NaN, Number.NaN % Number.NaN ); 85 …item++] = new TestCase( SECTION, "Number.NaN % 1", Number.NaN, Number.NaN % 1 ); 86 …item++] = new TestCase( SECTION, "1 % Number.NaN", Number.NaN, 1 % Number.NaN ); 88 … "Number.POSITIVE_INFINITY % Number.NaN", Number.NaN, Number.POSITIVE_INFINITY % Number.Na… 89 … "Number.NEGATIVE_INFINITY % Number.NaN", Number.NaN, Number.NEGATIVE_INFINITY % Number.Na… 94 …CTION, "Number.NEGATIVE_INFINITY % Number.NEGATIVE_INFINITY", Number.NaN, Number.NEGATIVE_… 95 …CTION, "Number.POSITIVE_INFINITY % Number.NEGATIVE_INFINITY", Number.NaN, Number.POSITIVE_… 96 …CTION, "Number.NEGATIVE_INFINITY % Number.POSITIVE_INFINITY", Number.NaN, Number.NEGATIVE_… 97 …CTION, "Number.POSITIVE_INFINITY % Number.POSITIVE_INFINITY", Number.NaN, Number.POSITIVE_… 99 …array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY % 0", Number.NaN, Number… [all …]
|
D | 11.13.2-3.js | 60 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 %= VAR2", Number.NaN, ev… 61 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 %= VAR2; VAR1", Number.NaN, ev… 62 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 %= VAR2", Number.NaN, ev… 63 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 %= VAR2; VAR1", Number.NaN, ev… 64 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 %= VAR2", Number.NaN, ev… 65 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 %= VAR2; VAR1", Number.NaN, ev… 69 …ECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = … 70 …ECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = … 71 …ECTION, "VAR1 =-Infinity; VAR2= Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = … 72 …ECTION, "VAR1 =-Infinity; VAR2=-Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = … [all …]
|
D | 11.5.2.js | 82 … new TestCase( SECTION, "Number.NaN / Number.NaN", Number.NaN, Number.NaN / Number.NaN ); 83 …item++] = new TestCase( SECTION, "Number.NaN / 1", Number.NaN, Number.NaN / 1 ); 84 …item++] = new TestCase( SECTION, "1 / Number.NaN", Number.NaN, 1 / Number.NaN ); 86 … "Number.POSITIVE_INFINITY / Number.NaN", Number.NaN, Number.POSITIVE_INFINITY / Number.Na… 87 … "Number.NEGATIVE_INFINITY / Number.NaN", Number.NaN, Number.NEGATIVE_INFINITY / Number.Na… 91 …CTION, "Number.NEGATIVE_INFINITY / Number.NEGATIVE_INFINITY", Number.NaN, Number.NEGATIVE_… 92 …CTION, "Number.POSITIVE_INFINITY / Number.NEGATIVE_INFINITY", Number.NaN, Number.POSITIVE_… 93 …CTION, "Number.NEGATIVE_INFINITY / Number.POSITIVE_INFINITY", Number.NaN, Number.NEGATIVE_… 94 …CTION, "Number.POSITIVE_INFINITY / Number.POSITIVE_INFINITY", Number.NaN, Number.POSITIVE_… 129 …array[item++] = new TestCase( SECTION, "0 / -0", Number.NaN, 0 / -0… [all …]
|
D | 11.5.1.js | 80 … new TestCase( SECTION, "Number.NaN * Number.NaN", Number.NaN, Number.NaN * Number.NaN ); 81 …item++] = new TestCase( SECTION, "Number.NaN * 1", Number.NaN, Number.NaN * 1 ); 82 …item++] = new TestCase( SECTION, "1 * Number.NaN", Number.NaN, 1 * Number.NaN ); 84 …array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY * 0", Number.NaN, Number.POS… 85 …array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY * 0", Number.NaN, Number.NEG… 86 …array[item++] = new TestCase( SECTION, "0 * Number.POSITIVE_INFINITY", Number.NaN, 0 * Number… 87 …array[item++] = new TestCase( SECTION, "0 * Number.NEGATIVE_INFINITY", Number.NaN, 0 * Number… 89 …array[item++] = new TestCase( SECTION, "-0 * Number.POSITIVE_INFINITY", Number.NaN, -0 * Num… 90 …array[item++] = new TestCase( SECTION, "-0 * Number.NEGATIVE_INFINITY", Number.NaN, -0 * Num… 91 …array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY * -0", Number.NaN, Number.P… [all …]
|
D | 11.13.2-2.js | 60 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 /= VAR2", Number.NaN, ev… 61 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 /= VAR2; VAR1", Number.NaN, ev… 62 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 /= VAR2", Number.NaN, ev… 63 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 /= VAR2; VAR1", Number.NaN, ev… 64 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 /= VAR2", Number.NaN, ev… 65 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 /= VAR2; VAR1", Number.NaN, ev… 85 …ase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 /= VAR2", Number.NaN, eval("VAR1 = … 86 …ase( SECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 /= VAR2", Number.NaN, eval("VAR1 = … 87 …ase( SECTION, "VAR1 =-Infinity; VAR2= Infinity; VAR1 /= VAR2", Number.NaN, eval("VAR1 = … 88 …ase( SECTION, "VAR1 =-Infinity; VAR2=-Infinity; VAR1 /= VAR2", Number.NaN, eval("VAR1 = … [all …]
|
D | 11.6.3.js | 82 … array[item++] = new TestCase( SECTION, "Number.NaN + 1", Number.NaN, Number.NaN + 1 ); 83 … array[item++] = new TestCase( SECTION, "1 + Number.NaN", Number.NaN, 1 + Number.NaN ); 85 … array[item++] = new TestCase( SECTION, "Number.NaN - 1", Number.NaN, Number.NaN - 1 ); 86 … array[item++] = new TestCase( SECTION, "1 - Number.NaN", Number.NaN, 1 - Number.NaN ); 91 …( SECTION, "Number.POSITIVE_INFINITY + Number.NEGATIVE_INFINITY", Number.NaN, Number.POSITIV… 92 …( SECTION, "Number.NEGATIVE_INFINITY + Number.POSITIVE_INFINITY", Number.NaN, Number.NEGATIV… 94 …( SECTION, "Number.POSITIVE_INFINITY - Number.POSITIVE_INFINITY", Number.NaN, Number.POSITIVE_… 95 …( SECTION, "Number.NEGATIVE_INFINITY - Number.NEGATIVE_INFINITY", Number.NaN, Number.NEGATIVE_…
|
/external/v8/test/mjsunit/regress/ |
D | regress-2056.js | 32 [undefined, 0.0, NaN, NaN], 33 [0.0, undefined, NaN, NaN], 34 [NaN, 0.0, NaN, NaN], 35 [0.0, NaN, NaN, NaN], 36 [-NaN, 0.0, NaN, NaN], 37 [0.0, -NaN, NaN, NaN],
|
D | regress-1246.js | 40 var radix_detect = [0, -0, NaN, Infinity, -Infinity, undefined, null, 54 assertEquals(NaN, parseInt("", radix)); 57 assertEquals(NaN, parseInt("af", radix)); 62 assertEquals(NaN, parseInt("", radix)); 63 assertEquals(NaN, parseInt("23", radix)); 64 assertEquals(NaN, parseInt("0xaf", radix)); 65 assertEquals(NaN, parseInt("af", radix)); 70 assertEquals(NaN, parseInt("", radix)); 73 assertEquals(NaN, parseInt("af", radix)); 78 assertEquals(NaN, parseInt("", radix));
|
/external/compiler-rt/test/Unit/ |
D | divxc3_test.c | 26 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator 36 return NaN; in classify() 40 return NaN; in classify() 46 return NaN; in classify() 71 if (classify(r) != NaN) in test__divxc3() 82 case NaN: in test__divxc3() 83 if (classify(r) != NaN) in test__divxc3() 87 if (classify(r) != NaN) in test__divxc3() 113 case NaN: in test__divxc3() 114 if (classify(r) != NaN) in test__divxc3() [all …]
|
D | divtc3_test.c | 26 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator 36 return NaN; in classify() 40 return NaN; in classify() 46 return NaN; in classify() 72 if (classify(r) != NaN) in test__divtc3() 83 case NaN: in test__divtc3() 84 if (classify(r) != NaN) in test__divtc3() 88 if (classify(r) != NaN) in test__divtc3() 114 case NaN: in test__divtc3() 115 if (classify(r) != NaN) in test__divtc3() [all …]
|
D | divdc3_test.c | 23 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator 33 return NaN; in classify() 37 return NaN; in classify() 43 return NaN; in classify() 68 if (classify(r) != NaN) in test__divdc3() 79 case NaN: in test__divdc3() 80 if (classify(r) != NaN) in test__divdc3() 84 if (classify(r) != NaN) in test__divdc3() 110 case NaN: in test__divdc3() 111 if (classify(r) != NaN) in test__divdc3() [all …]
|
D | divsc3_test.c | 23 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator 33 return NaN; in classify() 37 return NaN; in classify() 43 return NaN; in classify() 68 if (classify(r) != NaN) in test__divsc3() 79 case NaN: in test__divsc3() 80 if (classify(r) != NaN) in test__divsc3() 84 if (classify(r) != NaN) in test__divsc3() 110 case NaN: in test__divsc3() 111 if (classify(r) != NaN) in test__divsc3() [all …]
|
D | multc3_test.c | 26 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator 36 return NaN; in classify() 40 return NaN; in classify() 46 return NaN; in classify() 79 if (classify(r) != NaN) in test__multc3() 82 case NaN: in test__multc3() 83 if (classify(r) != NaN) in test__multc3() 87 if (classify(r) != NaN) in test__multc3() 109 case NaN: in test__multc3() 110 if (classify(r) != NaN) in test__multc3() [all …]
|
D | mulxc3_test.c | 26 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator 36 return NaN; in classify() 40 return NaN; in classify() 46 return NaN; in classify() 79 if (classify(r) != NaN) in test__mulxc3() 82 case NaN: in test__mulxc3() 83 if (classify(r) != NaN) in test__mulxc3() 87 if (classify(r) != NaN) in test__mulxc3() 109 case NaN: in test__mulxc3() 110 if (classify(r) != NaN) in test__mulxc3() [all …]
|
D | mulsc3_test.c | 23 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator 33 return NaN; in classify() 37 return NaN; in classify() 43 return NaN; in classify() 76 if (classify(r) != NaN) in test__mulsc3() 79 case NaN: in test__mulsc3() 80 if (classify(r) != NaN) in test__mulsc3() 84 if (classify(r) != NaN) in test__mulsc3() 110 case NaN: in test__mulsc3() 111 if (classify(r) != NaN) in test__mulsc3() [all …]
|
D | muldc3_test.c | 23 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator 33 return NaN; in classify() 37 return NaN; in classify() 43 return NaN; in classify() 76 if (classify(r) != NaN) in test__muldc3() 79 case NaN: in test__muldc3() 80 if (classify(r) != NaN) in test__muldc3() 84 if (classify(r) != NaN) in test__muldc3() 106 case NaN: in test__muldc3() 107 if (classify(r) != NaN) in test__muldc3() [all …]
|
/external/webkit/Source/JavaScriptCore/wtf/ |
D | DateMath.cpp | 116 #define NaN std::numeric_limits<double>::quiet_NaN() macro 384 ASSERT((year >= minYear && year <= maxYear) || (product - year == static_cast<int>(NaN))); in equivalentYearForDST() 584 return NaN; in parseES5DateFromNullTerminatedCharacters() 586 return NaN; in parseES5DateFromNullTerminatedCharacters() 591 return NaN; in parseES5DateFromNullTerminatedCharacters() 593 return NaN; in parseES5DateFromNullTerminatedCharacters() 595 return NaN; in parseES5DateFromNullTerminatedCharacters() 600 return NaN; in parseES5DateFromNullTerminatedCharacters() 602 return NaN; in parseES5DateFromNullTerminatedCharacters() 604 return NaN; in parseES5DateFromNullTerminatedCharacters() [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
D | 15.8.2.11.js | 56 …array[item++] = new TestCase( SECTION, "Math.max(void 0, 1)", Number.NaN, Math.max( … 57 …array[item++] = new TestCase( SECTION, "Math.max(void 0, void 0)", Number.NaN, Math.max( … 64 …ew TestCase( SECTION, "Math.max(NaN, Infinity)", Number.NaN, Math.max(Number.NaN,Number.… 65 … new TestCase( SECTION, "Math.max(NaN, 0)", Number.NaN, Math.max(Number.NaN, 0) ); 66 …array[item++] = new TestCase( SECTION, "Math.max('a string', 0)", Number.NaN, Math.max("… 67 …= new TestCase( SECTION, "Math.max(NaN, 1)", Number.NaN, Math.max(Number.NaN,1) ); 68 …array[item++] = new TestCase( SECTION, "Math.max('a string',Infinity)", Number.NaN, Math.max("… 69 …SECTION, "Math.max(Infinity, NaN)", Number.NaN, Math.max( Number.POSITIVE_INFINITY, Numb… 70 …tCase( SECTION, "Math.max(NaN, NaN)", Number.NaN, Math.max(Number.NaN, Number.NaN) … 71 …= new TestCase( SECTION, "Math.max(0,NaN)", Number.NaN, Math.max(0,Number.NaN) ); [all …]
|
D | 15.8.2.12.js | 57 …array[item++] = new TestCase( SECTION, "Math.min(void 0, 1)", Number.NaN, Math.min( … 58 …array[item++] = new TestCase( SECTION, "Math.min(void 0, void 0)", Number.NaN, Math.min( … 65 …array[item++] = new TestCase( SECTION, "Math.min(NaN,0)", Number.NaN, Math.min(Number.NaN,0)… 66 …array[item++] = new TestCase( SECTION, "Math.min(NaN,1)", Number.NaN, Math.min(Number.NaN,1)… 67 …array[item++] = new TestCase( SECTION, "Math.min(NaN,-1)", Number.NaN, Math.min(Number.NaN,-1… 68 …ray[item++] = new TestCase( SECTION, "Math.min(0,NaN)", Number.NaN, Math.min(0,Number.NaN) ); 69 …ray[item++] = new TestCase( SECTION, "Math.min(1,NaN)", Number.NaN, Math.min(1,Number.NaN) ); 70 …ay[item++] = new TestCase( SECTION, "Math.min(-1,NaN)", Number.NaN, Math.min(-1,Number.NaN) ); 71 …+] = new TestCase( SECTION, "Math.min(NaN,NaN)", Number.NaN, Math.min(Number.NaN,Number.NaN) );
|
D | 15.8.2.13.js | 48 …array[item++] = new TestCase( SECTION, "Math.pow()", Number.NaN, … 50 …array[item++] = new TestCase( SECTION, "Math.pow(void 0, void 0)", Number.NaN, … 55 …( SECTION, "Math.pow(1,NaN)", Number.NaN, Math.pow(1,Number.NaN)… 56 …e( SECTION, "Math.pow(0,NaN)", Number.NaN, Math.pow(0,Number.NaN)… 57 …SECTION, "Math.pow(NaN,0)", 1, Math.pow(Number.NaN,0) ); 58 …ECTION, "Math.pow(NaN,-0)", 1, Math.pow(Number.NaN,-0) ); 59 …e( SECTION, "Math.pow(NaN,1)", Number.NaN, Math.pow(Number.NaN, … 60 …e( SECTION, "Math.pow(NaN,.5)", Number.NaN, Math.pow(Number.NaN, … 65 …array[item++] = new TestCase( SECTION, "Math.pow(1, Infinity)", Number.NaN, … 66 …array[item++] = new TestCase( SECTION, "Math.pow(1, -Infinity)", Number.NaN, … [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/ |
D | 15.9.4.3.js | 64 d.year = Number.NaN; 65 d.month = Number.NaN; 66 d.date = Number.NaN; 67 d.hours = Number.NaN; 68 d.minutes = Number.NaN; 69 d.seconds = Number.NaN; 70 d.ms = Number.NaN; 71 d.value = Number.NaN; 72 d.time = Number.NaN; 73 d.day =Number.NaN; [all …]
|