| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | conversionFromInfinity.ets | 19 let nan_byte = Infinity * 0 as byte 20 let nan_short = Infinity * 0 as short 21 let nan_long = Infinity * 0 as long 22 let nan_char = Infinity * 0 as char 23 let nan_int = Infinity * 0 as int 24 let nan_float = Infinity * 0 as float 25 let nan_double = Infinity * 0 as double 26 let nan_byte2 = Infinity * 0 as byte 37 let b1 = Infinity as byte // converted at compile time, as 'Infinity' is constant 38 let b2: double = Infinity [all …]
|
| D | BitwiseOperationsOnFloat.ets | 55 assertEQ((Infinity & -94.24445985981884), 9223372036854775714) 56 assertEQ((-Infinity & 94.24445985981884), 0) 68 assertEQ((Infinity | 0.4), 9223372036854775807) 69 assertEQ((-Infinity | 0.5), -9223372036854775808) 81 assertEQ((Infinity ^ 1.2), 9223372036854775806) 82 assertEQ((-Infinity ^ 10049329.80001), -9223372036844726479) 96 assertEQ((Infinity << 1.0092), -2) 97 assertEQ((-Infinity << 1.0092), 0) 113 assertEQ((Infinity >> 61), 3) 114 assertEQ((-Infinity >> 61), -4) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/ |
| D | GoodRadixTest.ets | 18 …ures += test(checkGoodRadix(Double.POSITIVE_INFINITY, 2, "Infinity"), "Check Positive Infinity wit… 19 …res += test(checkGoodRadix(Double.NEGATIVE_INFINITY, 2, "-Infinity"), "Check Negatibe Infinity wit… 22 …ures += test(checkGoodRadix(Double.POSITIVE_INFINITY, 8, "Infinity"), "Check Positive Infinity wit… 23 …res += test(checkGoodRadix(Double.NEGATIVE_INFINITY, 8, "-Infinity"), "Check Negatibe Infinity wit… 26 …res += test(checkGoodRadix(Double.POSITIVE_INFINITY, 10, "Infinity"), "Check Positive Infinity wit… 27 …es += test(checkGoodRadix(Double.NEGATIVE_INFINITY, 10, "-Infinity"), "Check Negatibe Infinity wit… 30 …res += test(checkGoodRadix(Double.POSITIVE_INFINITY, 16, "Infinity"), "Check Positive Infinity wit… 31 …es += test(checkGoodRadix(Double.NEGATIVE_INFINITY, 16, "-Infinity"), "Check Negatibe Infinity wit…
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
| D | json-parser-expected.txt | 8 Infinity Infinity 9 -Infinity -Infinity 17 -Infinity -Infinity 37 Infinity Infinity 38 Infinity Infinity
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/arkts/@arkts/math/Decimal/ |
| D | minAndMaxTests.ets | 45 checkResultIsNaN(Infinity, -2, 'NaN', 0, -1, -Infinity); 46 checkResultIsNaN('NaN', Infinity, -2, 0, -1, -Infinity); 47 checkResultIsNaN(Infinity, -2, NaN, 0, -1, -Infinity); 49 checkResultValues(-2, Infinity, -2, 0, -1, Infinity); 50 checkResultValues(-Infinity, 0, -2, 0, -1, -Infinity); 51 checkResultValues(-Infinity, Infinity, -Infinity, -2, 0, -1, Infinity); 52 checkResultValues(-Infinity, Infinity, Infinity, -2, 0, -1, -Infinity); 53 checkResultValues(-Infinity, Infinity, -Infinity, -2, 0, new Decimal(Infinity)); 87 …kResultValues('-9.99999e+9000000000000000', Infinity, 10, '-9.99999e+9000000000000000', new Decima… 89 checkResultValues(1, Infinity, 1, '1e+9000000000000001', 1e200); [all …]
|
| D | sumTests.ets | 26 …suite.addTest("Decimal sum with default config that the sum is Infinity", testSumExpectedInfinity); 27 …suite.addTest("Decimal sum with default config that the sum is -Infinity", testSumExpectedNegative… 62 …arktest.assertEQ(Decimal.sum(NaN, 0, '9', new Decimal(0), 11, Infinity).valueOf(), expected.valueO… 63 …arktest.assertEQ(Decimal.sum(0, new Decimal('-Infinity'), '9', new Decimal(NaN), 11).valueOf(), ex… 64 …arktest.assertEQ(Decimal.sum(4, '-Infinity', 0, '9', new Decimal(0), Infinity, 2).valueOf(), expec… 68 expected = new Decimal(Infinity); 69 arktest.assertEQ(Decimal.sum(Infinity).valueOf(), expected.valueOf()); 71 arktest.assertEQ(Decimal.sum(100, 200, 'Infinity').valueOf(), expected.valueOf()); 72 …arktest.assertEQ(Decimal.sum(0, new Decimal('Infinity'), '9', new Decimal(0), 11).valueOf(), expec… 73 … arktest.assertEQ(Decimal.sum(0, '9', new Decimal(0), 11, Infinity).valueOf(), expected.valueOf()); [all …]
|
| D | greaterThanOrEqualToTests.ets | 29 arktest.assertTrue(new Decimal(Infinity).greaterThanOrEqualTo(Infinity)); 30 arktest.assertTrue(!new Decimal('-Infinity').greaterThanOrEqualTo(8)); 38 arktest.assertTrue(new Decimal(Infinity).greaterThanOrEqualTo(Infinity)); 39 arktest.assertTrue(new Decimal(Infinity).greaterThanOrEqualTo(-Infinity)); 40 arktest.assertTrue(!new Decimal(NaN).greaterThanOrEqualTo(-Infinity)); 44 arktest.assertTrue(new Decimal(-Infinity).greaterThanOrEqualTo(-Infinity)); 48 arktest.assertTrue(new Decimal(0).greaterThanOrEqualTo(-Infinity)); 49 arktest.assertTrue(!new Decimal(0).greaterThanOrEqualTo('Infinity'));
|
| D | signTests.ets | 25 arktest.assertEQ(Decimal.sign(Infinity), 1); 26 arktest.assertEQ(Decimal.sign(-Infinity), -1); 27 arktest.assertEQ(Decimal.sign('Infinity'), 1); 28 arktest.assertEQ(Decimal.sign('-Infinity'), -1); 32 arktest.assertTrue(1 / Decimal.sign('0') === Infinity); 33 arktest.assertTrue(1 / Decimal.sign(new Decimal('0')) === Infinity); 34 arktest.assertTrue(1 / Decimal.sign('-0') === -Infinity); 35 arktest.assertTrue(1 / Decimal.sign(new Decimal('-0')) === -Infinity);
|
| D | clampTests.ets | 49 arktest.assertEQ(new Decimal(Infinity).clamp(0, 1).valueOf(), '1'); 50 arktest.assertEQ(new Decimal(0).clamp(-Infinity, 0).valueOf(), '0'); 51 arktest.assertEQ(new Decimal(-Infinity).clamp(0, 1).valueOf(), '0'); 52 arktest.assertEQ(new Decimal(-Infinity).clamp(-Infinity, Infinity).valueOf(), '-Infinity'); 53 arktest.assertEQ(new Decimal(Infinity).clamp(-Infinity, Infinity).valueOf(), 'Infinity'); 54 arktest.assertEQ(new Decimal(0).clamp(1, Infinity).valueOf(), '1');
|
| D | toNumberTests.ets | 36 t(Infinity, Infinity); 37 t('Infinity', Infinity); 38 t(-Infinity, -Infinity); 39 t('-Infinity', -Infinity);
|
| /arkcompiler/ets_runtime/test/aottest/regressioncase/ |
| D | pgo_expect_output.txt | 17 -Infinity 18 -Infinity 19 -Infinity 20 -Infinity 21 -Infinity 22 -Infinity 23 -Infinity 24 -Infinity
|
| D | expect_output.txt | 17 -Infinity 18 -Infinity 19 -Infinity 20 -Infinity 21 -Infinity 22 -Infinity 23 -Infinity 24 -Infinity
|
| /arkcompiler/ets_runtime/test/moduletest/forof_set/ |
| D | expect_output.txt | 21 Infinity 22 -Infinity 35 Infinity 36 -Infinity 49 Infinity,Infinity 50 -Infinity,-Infinity 66 Infinity 68 -Infinity
|
| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/math/Pow/ |
| D | builtinMathPow.ts | 54 len = Math.pow(-Infinity, 5); 55 print(len); //: -Infinity 57 len = Math.pow(-Infinity, 6); 58 print(len); //: Infinity 62 len = Math.pow(-Infinity, -3); 63 print("1/x: " + 1 / len); //: 1/x: -Infinity 65 len = Math.pow(-Infinity, -4); 74 print(len); //: Infinity 82 print("1/x: " + 1 / len); //: 1/x: -Infinity 91 print(len); //: -Infinity [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtinmath/ |
| D | expect_output.txt | 19 Infinity 36 Infinity 37 Infinity 45 -Infinity 46 Infinity
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/compiler/ |
| D | test-ts-extremely-number-2-expected.txt | 2 Infinity 3 Infinity 11 -Infinity 12 -Infinity
|
| D | test-ts-extremely-number-1-expected.txt | 2 Infinity 3 Infinity 11 -Infinity 12 -Infinity
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.std_core_double_static.yaml | 49 …param_list: {"param1": '["+Infinity", "-Infinity", "Infinity", "+0", "-0", "0000.0", "-00001.5", "… 122 …" 0x11 ", " 0x11 "]', "param2": "[Infinity, -Infinity, Infinity, -Infinity, Infinity, -Infinity, … 139 …"param1": "[0, -1, 123.45, Double.MAX_VALUE + 1, Double.MIN_VALUE - 1, Infinity, -Infinity, Double… 168 param_list: { "param1": '[0.5, -0.5, 123.45, -123.45, +Infinity, -Infinity]' }, 196 param_list: { "param1": '[0, 1, -1, 123.45, -123.45, Infinity, -Infinity]' },
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_es_checked/ |
| D | uint8clampedarray.yaml | 18 …((): Uint8ClampedArray => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0… 21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1] 96 - paramOf(11.0, "Infinity") 116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)") 123 - Array.of<number>(1, 65535, -65535, NaN, Infinity) 124 - new Set<number>(Array.of<number>(1, 65535, -65535, NaN, Infinity)) 125 - Array.of<number>(1, 65535, -65535, NaN, Infinity).values() 153 - combinationRest "NaN", "10.0", "Infinity" [all …]
|
| D | int32array.yaml | 18 …((): Int32Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 65536… 21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1] 96 - paramOf(11.0, "Infinity") 116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)") 123 - Array.of<number>(1, 65535, -65535, NaN, Infinity) 124 - new Set<number>(Array.of<number>(1, 65535, -65535, NaN, Infinity)) 125 - Array.of<number>(1, 65535, -65535, NaN, Infinity).values() 153 - combinationRest "NaN", "10.0", "Infinity" [all …]
|
| D | float64array.yaml | 18 …((): Float64Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 655… 21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1] 96 - paramOf(11.0, "Infinity") 116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)") 123 - Array.of<number>(1, 65535, -65535, NaN, Infinity) 124 - new Set<number>(Array.of<number>(1, 65535, -65535, NaN, Infinity)) 125 - Array.of<number>(1, 65535, -65535, NaN, Infinity).values() 153 - combinationRest "NaN", "10.0", "Infinity" [all …]
|
| D | int16array.yaml | 18 …((): Int16Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 65536… 21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1] 96 - paramOf(11.0, "Infinity") 116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)") 123 - Array.of<number>(1, 65535, -65535, NaN, Infinity) 124 - new Set<number>(Array.of<number>(1, 65535, -65535, NaN, Infinity)) 125 - Array.of<number>(1, 65535, -65535, NaN, Infinity).values() 153 - combinationRest "NaN", "10.0", "Infinity" [all …]
|
| D | uint16array.yaml | 18 …((): Uint16Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 6553… 21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1] 96 - paramOf(11.0, "Infinity") 116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)") 123 - Array.of<number>(1, 65535, -65535, NaN, Infinity) 124 - new Set<number>(Array.of<number>(1, 65535, -65535, NaN, Infinity)) 125 - Array.of<number>(1, 65535, -65535, NaN, Infinity).values() 153 - combinationRest "NaN", "10.0", "Infinity" [all …]
|
| D | uint8array.yaml | 18 …((): Uint8Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 65536… 21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1] 96 - paramOf(11.0, "Infinity") 116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)") 123 - Array.of<number>(1, 65535, -65535, NaN, Infinity) 124 - new Set<number>(Array.of<number>(1, 65535, -65535, NaN, Infinity)) 125 - Array.of<number>(1, 65535, -65535, NaN, Infinity).values() 153 - combinationRest "NaN", "10.0", "Infinity" [all …]
|
| D | float32array.yaml | 18 …((): Float32Array => { let b: number[] = [-Infinity, Infinity, -NaN, NaN, 0, 4, 1, 2.1, 256.0, 655… 21 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 22 …ength - 1.0", "-self.length + 1.0", 1.0, 5.0, 100.0, -1.1, 2.2, "-Infinity", "Infinity", "NaN", "0… 23 default_search: ["NaN", "Infinity", "-Infinity", 0.0, "-0.0", 100, 1] 96 - paramOf(11.0, "Infinity") 116 … - paramOf("new Array<number>(-1, 0, 1024, -1024, 0.1, 2.5, -2.5, Infinity, -Infinity, NaN)") 123 - Array.of<number>(1, 65535, -65535, NaN, Infinity) 124 - new Set<number>(Array.of<number>(1, 65535, -65535, NaN, Infinity)) 125 - Array.of<number>(1, 65535, -65535, NaN, Infinity).values() 153 - combinationRest "NaN", "10.0", "Infinity" [all …]
|