Home
last modified time | relevance | path

Searched +full:- +full:200 (Results 1 – 25 of 213) sorted by relevance

123456789

/arkcompiler/ets_runtime/test/moduletest/arraysortcase/
Darraysortcase.js7 * http://www.apache.org/licenses/LICENSE-2.0
23 const numberArray1 = new Array(40, 1, 5, 200);
28 const numberArray = [40, 1, 5, 200];
30 const mixedNumericArray = ["80", "9", "700", 40, 1, 5, 200];
33 return a - b;
40 numberArray.join(); // '40,1,5,200'
41 numberArray.sort(); // [1, 200, 40, 5]
42 numberArray.sort(compareNumbers); // [1, 5, 40, 200]
50 mixedNumericArray.join(); // '80,9,700,40,1,5,200'
51 mixedNumericArray.sort(); // [1, 200, 40, 5, '700', '80', '9']
[all …]
Dexpect_output.txt6 # http://www.apache.org/licenses/LICENSE-2.0
16 1,200,40,5
18 1,5,40,200
20 1,5,9,40,80,200,700
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/tests/
Dtest_gc_ark_reporter.py2 # -*- coding: utf-8 -*-
9 # http://www.apache.org/licenses/LICENSE-2.0
37 mem_after=200, mem_total=500,
51 mem_after=200, mem_total=500,
58 self.assertEqual(events[1].timestamp - events[0].timestamp + events[1].gc_time,
99 mem_after=200, mem_total=500,
115 mem_after=200, mem_total=500,
119 timestamp=200
126 gc_vm_time = adjust_time['fw_end_time'] - adjust_time['fw_start_time']
131 self.assertEqual(events[i].timestamp - delta, p[0])
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe137.md3 Rule ``arkts-no-globalthis``
20 globalThis.abc = 200
35 M.abc = 200
41 - Recipe 139: Declaring properties on functions is not supported (``arkts-no-func-props``)
42 - Recipe 144: Usage of standard library is restricted (``arkts-limited-stdlib``)
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DSpreadExpressions.sts7 * http://www.apache.org/licenses/LICENSE-2.0
41 let expectedAssignment : Int[] = [100, 200, 77, 88, 99, 400, 600, 77, 88, 99]
43 arrayAssignment = [100, 200, ...intArray, 400, 600, ...intArray]
54 let expectedUnion : unionType[] = [100, 200, "first", "second", 500, 600, "first", "second"]
55 let arrayUnion: unionType[] = [100, 200, ...unionArray, 500, 600, ...unionArray]
Dgetter_setter2.sts2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
35 objectos.field -= 200;
36 assert objectos.field == -160;
77 assert objectos.field == 200;
79 objectos.field -= objectos.field;
100 value -= objectos.field;
104 assert value == 200;
Dlocal-class-capture-not-boxing.sts2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
92 static local_s_field : int = 200;
97 assert(LocalClassNotBoxing.local_s_field == 200);
107 assert(LocalClassNotBoxing.local_s_field == 200);
/arkcompiler/ets_runtime/test/quickfix/multi_patch/
Dmodule_modify.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 export var a = 200
18 var b = 200
Dexpect_output.txt6 # http://www.apache.org/licenses/LICENSE-2.0
17 print patch:200 - 200
22 print base:100 - 100
25 print patch1:300 - 300
30 print base:100 - 100
33 print patch2: 400 - 400
38 print base:100 - 100
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_handle_test.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
16 #include "ecmascript/ecma_string-inl.h"
31 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
36 auto string1 = factory->NewFromASCII("test1"); in HWTEST_F_L0()
37 globalString = thread->NewGlobalHandle(string1.GetTaggedType()); in HWTEST_F_L0()
40 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0()
44 factory->NewFromASCII("test1"), in HWTEST_F_L0()
51 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in GlobalHandleCommon()
55 auto string1 = factory->NewFromUtf8(test.c_str()); in GlobalHandleCommon()
56 globalString[i] = thread->NewGlobalHandle(string1.GetTaggedType()); in GlobalHandleCommon()
[all …]
/arkcompiler/ets_runtime/test/moduletest/createobject/
Dexpect_output.txt6 # http://www.apache.org/licenses/LICENSE-2.0
28 200
29 200
Dcreateobject.js7 * http://www.apache.org/licenses/LICENSE-2.0
30 200: "200", property
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/09.classes/abstract-class-inheritance/
Dabstract-class-inheritance-103.sts2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
16 /*---
17 desc: 09.1 - 09.4 Class Definition
19 ---*/
69 let c21: C21 = new C21("c21", 200);
74 assert c21.getNumber() == 200
/arkcompiler/toolchain/tooling/test/
Dpt_json_test.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
47 ASSERT_TRUE(json->IsBool()); in HWTEST_F_L0()
48 EXPECT_FALSE(json->GetBool()); in HWTEST_F_L0()
49 EXPECT_EQ(json->Stringify(), str); in HWTEST_F_L0()
50 json->ReleaseRoot(); in HWTEST_F_L0()
57 ASSERT_TRUE(json->IsBool()); in HWTEST_F_L0()
58 EXPECT_TRUE(json->GetBool()); in HWTEST_F_L0()
59 EXPECT_EQ(json->Stringify(), str); in HWTEST_F_L0()
60 json->ReleaseRoot(); in HWTEST_F_L0()
67 ASSERT_TRUE(json->IsNumber()); in HWTEST_F_L0()
[all …]
Ddebugger_script_test.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
25 #include "ecmascript/js_tagged_value-inl.h"
64 script->SetScriptId(100); in HWTEST_F_L0()
65 ASSERT_EQ(script->GetScriptId(), 100); in HWTEST_F_L0()
71 script->SetFileName("xx"); in HWTEST_F_L0()
72 ASSERT_EQ(script->GetFileName(), "xx"); in HWTEST_F_L0()
78 script->SetUrl("121"); in HWTEST_F_L0()
79 ASSERT_EQ(script->GetUrl(), "121"); in HWTEST_F_L0()
85 script->SetHash("111"); in HWTEST_F_L0()
86 ASSERT_EQ(script->GetHash(), "111"); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/05.overloading_and_overriding_in_interfaces/
Dtwo_interfaces.sts1 /*---
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
17 /*---
18 desc: >-
20 …If signatures are overload-equivalent, then the static method in the subclass hides the previous s…
22 ---*/
45 res = 200 + {{c.res}};
57 assert(res == 200 + {{c.res}});
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/08.function_declarations/
Dfunction_decl2.params.yaml1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
14 --- # Cases with use of function type alias
17 - decl: |-
22 res = 200;
29 call: |-
31 if (res == 0 && foo(bar) == 100 && res == 200) return 0;
34 - decl: |-
47 call: |-
52 - decl: |-
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/04.overloading_and_overriding_in_classes/
Dtwo_class_method_over_n.sts1 /*---
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
17 /*---
18 desc: >-
20 If signatures are override-compatible, then overriding is used. Otherwise, overloading is used.
23 …If signatures are overload-equivalent, then the static method in the subclass hides the previous s…
25 ---*/
49 res = 200 + {{c.res}};
66 assert(res == 200 + {{c.res}});
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/
Dmax.sts2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
19 if (max(0 as int, -2 as int) != 0 as int) return 3;
21 if (max(-2 as int, -4 as int) != -2 as int) return 5
26 if (max(0, -2) != 0) return 13;
28 if (max(-2, -4) != -2) return 15;
37 if (max(0. as float, -4. as float) != 0. as float) return 27;
38 if (max(1.e-10 as float, 2.e+12 as float) != 2.e+12 as float) return 28;
46 if (max(0, -4) != 0) return 37;
47 if (max(1.e-100, 2.e+200) != 2.e+200) return 38;
/arkcompiler/ets_runtime/test/moduletest/stringsplit/
Dstringsplit.js7 * http://www.apache.org/licenses/LICENSE-2.0
24 ("X").split("00QP", -32297n);
32 const longString = new Array(200).fill("abcdef").join('');
33 const longTwoBytesString = new Array(200).fill("\u0426\u0427\u0428\u0429\u0430").join('');
/arkcompiler/ets_runtime/test/aottest/stobjbyindex/
Dexpect_output.txt6 # http://www.apache.org/licenses/LICENSE-2.0
17 200
/arkcompiler/ets_runtime/test/aottest/stobjbyvalue/
Dexpect_output.txt6 # http://www.apache.org/licenses/LICENSE-2.0
17 200
/arkcompiler/ets_runtime/test/quickfix/import_export/
Dmodule_modify.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 export var a = 200
/arkcompiler/ets_runtime/test/quickfix/lazy_import/
Dmodule_modify.js7 * http://www.apache.org/licenses/LICENSE-2.0
16 export var a = 200
/arkcompiler/ets_frontend/es2panda/test/debugger/debugger-in-debug/
Dbase.js7 * http://www.apache.org/licenses/LICENSE-2.0
21 b = 200;

123456789