| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/escompat/ |
| D | list.escompat_BigInt_instance.yaml | 18 init_object_data: '[-100n, 0n, 100000n, 999999999n]', 28 expected_test_data: "[-100n, 0n, 100000n, 999999999n]", 78 init_object_data: "[51063684789608676731n, 79 51063684789608676731n, 80 51063684789608676731n, 81 51063684789608676731n, 82 51063684789608676731n, 83 51063684789608676731n, 84 51063684789608676731n, 85 51063684789608676731n]", [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/03.types/References_Types/Bigint/ |
| D | bigint-bitwise-and-1.sts | 27 match(0n, 1n, 0n) 28 match(65535n, 255n, 255n) 30 match(12345678n, 12345678n, 12345678n) 31 match(12345678n, -12345678n, 2n) 32 match(123456789012n, -123456789012n, 4n) 34 match(18446744073709552000n, -256n, 18446744073709551872n) 35 match(-256n, 18446744073709552000n, 18446744073709551872n) 37 match(18446744073709552000n, 18446744073709552000n, 18446744073709552000n) 38 match(18446744073709552000n, -18446744073709552000n, 128n) 40 …407370955200018446744073709552000n, 1844674407370955200018446744073709552000n, 1844674407370955200… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | BigInt8.sts | 17 assert new BigInt(10).operatorMultiply(new BigInt(10)) == 100n; 18 assert new BigInt(0).operatorMultiply(new BigInt(50)) == 0n; 19 assert new BigInt(1).operatorMultiply(new BigInt(50)) == 50n; 20 assert new BigInt(50).operatorMultiply(new BigInt(5)) == 250n; 21 assert new BigInt(50).operatorMultiply(new BigInt(-5)) == -250n; 22 assert new BigInt(-1).operatorMultiply(new BigInt(-5)) == 5n; 23 assert new BigInt(0).operatorMultiply(new BigInt(0)) == 0n; 24 assert new BigInt(123).operatorMultiply(new BigInt(1)) == 123n; 25 assert new BigInt(1234).operatorMultiply(new BigInt(987)) == 1217958n; 26 …n).operatorMultiply(new BigInt(412343124123421347812304712431421204731024n)) == 133675333279472162… [all …]
|
| D | BigInt2.sts | 17 assert new BigInt(0).operatorLeftShift(new BigInt(0)) == (0n); 18 assert new BigInt(0).operatorLeftShift(new BigInt(1)) == (0n); 19 assert new BigInt(1).operatorLeftShift(new BigInt(0)) == (1n); 20 assert new BigInt(10).operatorLeftShift(new BigInt(2)) == (40n); 21 assert new BigInt(255).operatorLeftShift(new BigInt(41)) == (560750930165760n); 22 assert new BigInt(65535).operatorLeftShift(new BigInt(60)) == (75556710804409716572160n); 23 assert new BigInt(4294967295).operatorLeftShift(new BigInt(5)) == (137438953440n); 24 …assert new BigInt(18446744073709551615n).operatorLeftShift(new BigInt(6)) == (11805916207174113033… 25 …535904902545412130n).operatorLeftShift(new BigInt(123)) == (13562579802667292602585801202159372574… 26 …eftShift(new BigInt(218)) == (842498333348457493583344221469363458551160763204392890034487820288n); [all …]
|
| D | BigInt7.sts | 17 assert new BigInt(10).operatorSubtract(new BigInt(2)) == (8n); 18 assert new BigInt(2).operatorSubtract(new BigInt(10)) == (-8n); 19 assert new BigInt(-10).operatorSubtract(new BigInt(-2)) == (-8n); 20 assert new BigInt(-100).operatorSubtract(new BigInt(1)) == (-101n); 21 assert new BigInt(-100).operatorSubtract(new BigInt(-1)) == (-99n); 22 assert new BigInt(-1000).operatorSubtract(new BigInt(10)) == (-1010n); 23 …40127434312471243n).operatorSubtract(new BigInt(234112342314526914672342143621463921469n)) == (-23… 24 …40127434312471243n).operatorSubtract(new BigInt(234112342314526914672342143621463921469n)) == (-23… 25 …40127434312471243n).operatorSubtract(new BigInt(-234112342314526914672342143621463921469n)) == (23… 26 …40127434312471243n).operatorSubtract(new BigInt(-234112342314526914672342143621463921469n)) == (23… [all …]
|
| D | BigInt5.sts | 17 assert new BigInt(10).negate() == (-10n); 18 assert new BigInt(1000).negate() == (-1000n); 19 assert new BigInt(-1).negate() == (1n); 20 assert new BigInt(-10).negate() == (10n); 21 assert new BigInt(-100).negate() == (100n); 22 assert new BigInt(0).negate() == (0n); 26 let n = -128n 27 assert (n == -128n) 29 let a = 123n; 30 assert(a == 123n); [all …]
|
| D | BigInt6.sts | 17 assert new BigInt(10).operatorAdd(new BigInt(20)) == 30n; 18 assert new BigInt(1000).operatorAdd(new BigInt(10)) == 1010n; 19 assert new BigInt(-10).operatorAdd(new BigInt(9)) == -1n; 20 assert new BigInt(-10).operatorAdd(new BigInt(10)) == 0n; 21 assert new BigInt(-100).operatorAdd(new BigInt(10)) == -90n; 22 assert new BigInt(100).operatorAdd(new BigInt(10)) == 110n; 23 assert new BigInt(65535).operatorAdd(new BigInt(65535)) == 131070n; 24 assert new BigInt(65500).operatorAdd(new BigInt(1)) == (65501n); 25 assert new BigInt(65500).operatorAdd(new BigInt(-1)) == (65499n); 26 assert new BigInt(-65500).operatorAdd(new BigInt(-1)) == (-65501n); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/09.literals/03.bigint_literals/ |
| D | bigint_func.params.yaml | 16 - { func: 'BigInt("1n")', res: 1n } 17 - { func: 'BigInt("1234567890n")', res: 1234567890n } 19 - { func: 'BigInt("1")', res: 1n } 20 - { func: 'BigInt("1234567890")', res: 1234567890n } 22 - { func: 'BigInt(1 as long)', res: 1n } 23 - { func: 'BigInt(1234567890 as long)', res: 1234567890n } 25 - { func: 'BigInt.asIntN(32, 0n)', res: 0n } 26 - { func: 'BigInt.asIntN(0, 12345678901234567890n)', res: 0n } 27 - { func: 'BigInt.asIntN(4, 16n)', res: 0n } 28 - { func: 'BigInt.asIntN(4, 15n)', res: -1n } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/14.type_bigint/ |
| D | bint_un.params.yaml | 18 - { expr: 0 as byte, val: 0n } 19 - { expr: 0x7F as byte, val: 127n } 20 - { expr: 0x80 as byte, val: -128n } 24 - { expr: 0 as short, val: 0n } 25 - { expr: 0x007F as short, val: 127n } 26 - { expr: 0xFF80 as short, val: -128n } 27 - { expr: 0x7FFF as short, val: 32767n } 28 - { expr: 0x8000 as short, val: -32768n } 32 - { expr: 0 as int, val: 0n } 33 - { expr: 0x0000007F as int, val: 127n } [all …]
|
| D | bint_tup.params.yaml | 18 - { expr: 0 as byte, val: 0n } 19 - { expr: 0x7F as byte, val: 127n } 20 - { expr: 0x80 as byte, val: -128n } 24 - { expr: 0 as short, val: 0n } 25 - { expr: 0x007F as short, val: 127n } 26 - { expr: 0xFF80 as short, val: -128n } 27 - { expr: 0x7FFF as short, val: 32767n } 28 - { expr: 0x8000 as short, val: -32768n } 32 - { expr: 0 as int, val: 0n } 33 - { expr: 0x0000007F as int, val: 127n } [all …]
|
| D | bint_clss.params.yaml | 18 - { expr: 0 as byte, val: 0n } 19 - { expr: 0x7F as byte, val: 127n } 20 - { expr: 0x80 as byte, val: -128n } 24 - { expr: 0 as short, val: 0n } 25 - { expr: 0x007F as short, val: 127n } 26 - { expr: 0xFF80 as short, val: -128n } 27 - { expr: 0x7FFF as short, val: 32767n } 28 - { expr: 0x8000 as short, val: -32768n } 32 - { expr: 0 as int, val: 0n } 33 - { expr: 0x0000007F as int, val: 127n } [all …]
|
| D | bint_lmbd.params.yaml | 18 - { expr: 0 as byte, val: 0n } 19 - { expr: 0x7F as byte, val: 127n } 20 - { expr: 0x80 as byte, val: -128n } 24 - { expr: 0 as short, val: 0n } 25 - { expr: 0x007F as short, val: 127n } 26 - { expr: 0xFF80 as short, val: -128n } 27 - { expr: 0x7FFF as short, val: 32767n } 28 - { expr: 0x8000 as short, val: -32768n } 32 - { expr: 0 as int, val: 0n } 33 - { expr: 0x0000007F as int, val: 127n } [all …]
|
| D | bint_fld.params.yaml | 18 - { expr: 0 as byte, val: 0n } 19 - { expr: 0x7F as byte, val: 127n } 20 - { expr: 0x80 as byte, val: -128n } 24 - { expr: 0 as short, val: 0n } 25 - { expr: 0x007F as short, val: 127n } 26 - { expr: 0xFF80 as short, val: -128n } 27 - { expr: 0x7FFF as short, val: 32767n } 28 - { expr: 0x8000 as short, val: -32768n } 32 - { expr: 0 as int, val: 0n } 33 - { expr: 0x0000007F as int, val: 127n } [all …]
|
| D | bint_args.params.yaml | 18 - { expr: 0 as byte, val: 0n } 19 - { expr: 0x7F as byte, val: 127n } 20 - { expr: 0x80 as byte, val: -128n } 24 - { expr: 0 as short, val: 0n } 25 - { expr: 0x007F as short, val: 127n } 26 - { expr: 0xFF80 as short, val: -128n } 27 - { expr: 0x7FFF as short, val: 32767n } 28 - { expr: 0x8000 as short, val: -32768n } 32 - { expr: 0 as int, val: 0n } 33 - { expr: 0x0000007F as int, val: 127n } [all …]
|
| D | bint.params.yaml | 18 - { expr: 0 as byte, val: 0n } 19 - { expr: 0x7F as byte, val: 127n } 20 - { expr: 0x80 as byte, val: -128n } 24 - { expr: 0 as short, val: 0n } 25 - { expr: 0x007F as short, val: 127n } 26 - { expr: 0xFF80 as short, val: -128n } 27 - { expr: 0x7FFF as short, val: 32767n } 28 - { expr: 0x8000 as short, val: -32768n } 32 - { expr: 0 as int, val: 0n } 33 - { expr: 0x0000007F as int, val: 127n } [all …]
|
| D | bint_fdef.params.yaml | 18 - { expr: 0 as byte, val: 0n } 19 - { expr: 0x7F as byte, val: 127n } 20 - { expr: 0x80 as byte, val: -128n } 24 - { expr: 0 as short, val: 0n } 25 - { expr: 0x007F as short, val: 127n } 26 - { expr: 0xFF80 as short, val: -128n } 27 - { expr: 0x7FFF as short, val: 32767n } 28 - { expr: 0x8000 as short, val: -32768n } 32 - { expr: 0 as int, val: 0n } 33 - { expr: 0x0000007F as int, val: 127n } [all …]
|
| D | bint_fld_gen.params.yaml | 18 - { expr: 0 as byte, val: 0n } 19 - { expr: 0x7F as byte, val: 127n } 20 - { expr: 0x80 as byte, val: -128n } 24 - { expr: 0 as short, val: 0n } 25 - { expr: 0x007F as short, val: 127n } 26 - { expr: 0xFF80 as short, val: -128n } 27 - { expr: 0x7FFF as short, val: 32767n } 28 - { expr: 0x8000 as short, val: -32768n } 32 - { expr: 0 as int, val: 0n } 33 - { expr: 0x0000007F as int, val: 127n } [all …]
|
| D | bint_arr.params.yaml | 18 - { expr: 0 as byte, val: 0n } 19 - { expr: 0x7F as byte, val: 127n } 20 - { expr: 0x80 as byte, val: -128n } 24 - { expr: 0 as short, val: 0n } 25 - { expr: 0x007F as short, val: 127n } 26 - { expr: 0xFF80 as short, val: -128n } 27 - { expr: 0x7FFF as short, val: 32767n } 28 - { expr: 0x8000 as short, val: -32768n } 32 - { expr: 0 as int, val: 0n } 33 - { expr: 0x0000007F as int, val: 127n } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/03.bigint_equality_operators/ |
| D | bigint_eq_cte.params.yaml | 15 - { ltype: 'BigInt', lval: '1n', op: '==', rtype: 'Boolean', rval: 'true' } 16 - { ltype: 'BigInt', lval: '1003n"', op: '==', rtype: 'Byte' , rval: '0' } 17 - { ltype: 'BigInt', lval: '14930n', op: '==', rtype: 'Int' , rval: '-134242' } 18 - { ltype: 'BigInt', lval: '495059n', op: '==', rtype: 'Short' , rval: '43000' } 19 - { ltype: 'BigInt', lval: '-234352n', op: '==', rtype: 'Long' , rval: '147483647' } 21 - { rtype: 'BigInt', rval: '-2344350531n', op: '==', ltype: 'Float', lval: '0.1' } 22 - { rtype: 'BigInt', rval: '13433553955n', op: '==', ltype: 'Double', lval: '4E10' } 23 - { rtype: 'BigInt', rval: '90009113640n', op: '==', ltype: 'String', lval: '"test"' } 24 - { rtype: 'BigInt', rval: '12001201300n', op: '==', ltype: 'BigInt[]', lval: '[6666666n]' } 25 … - { rtype: 'BigInt', rval: '-5001359991n', op: '==', ltype: 'TestClass', lval: 'new TestClass()' } [all …]
|
| D | eq.params.yaml | 17 - 0n 18 - -0n 24 - +1n 28 - new BigInt(+1n) 30 - -1n 34 - new BigInt(-1n) 37 - 2147483647n # Int.MAX_VALUE 41 - 2147483646n # Int.MAX_VALUE - 1 45 - 2147483645n # Int.MAX_VALUE - 2 49 - -2147483648n # Int.MIN_VALUE [all …]
|
| D | ne1.params.yaml | 17 - 0n 18 - -0n 24 - +1n 28 - new BigInt(+1n) 30 - -1n 34 - new BigInt(-1n) 37 - 2147483647n # Int.MAX_VALUE 41 - 2147483646n # Int.MAX_VALUE - 1 45 - 2147483645n # Int.MAX_VALUE - 2 49 - -2147483648n # Int.MIN_VALUE [all …]
|
| D | ne2.params.yaml | 17 - 0n 18 - -0n 24 - +1n 28 - new BigInt(+1n) 30 - -1n 34 - new BigInt(-1n) 37 - 2147483647n # Int.MAX_VALUE 41 - 2147483646n # Int.MAX_VALUE - 1 45 - 2147483645n # Int.MAX_VALUE - 2 49 - -2147483648n # Int.MIN_VALUE [all …]
|
| /arkcompiler/runtime_core/static_core/verification/config/default/ |
| D | default_config.cpp | 22 "debug {\n" 23 " options {\n" 24 " verifier {\n" 25 " allow {\n" 26 " undefined-method\n" 27 " }\n" 28 " }\n" 29 " }\n" 30 " method_options {\n" 31 " verifier {\n" [all …]
|
| /arkcompiler/ets_runtime/ecmascript/extractortool/tests/ |
| D | source_map_test.cpp | 23 "{\n" 24 " \"entry/src/main/ets/pages/Index.ts\": {\n" 25 " \"version\": 3,\n" 26 " \"file\": \"Index.ets\",\n" 27 " \"sources\": [\n" 28 " \"entry/src/main/ets/pages/Index.ets\"\n" 29 " ],\n" 30 " \"names\": [],\n" 53 "CAAA;AASJ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;;;;;;\"\n" 54 " \"entry-package-info\": \"entry|1.0.0\n" [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/regex/ |
| D | mixed_capturing_group_nested_assertion_letter_number_emotion_split-expected.txt | 1 ["\n","a1\t","\t","\t","","\t\naa2\naa2\n\n\n","bbb222\n","\n","\n","","\n\n\n"…
|