Home
last modified time | relevance | path

Searched full:equals (Results 1 – 25 of 240) sorted by relevance

12345678910

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/strings/
Dstring_api.sts72 assert str3.substring(0).equals("hello" as Object): "Substring from idx 0 must be 'hello'";
73 assert str3.substring(3).equals("lo" as Object): "Substring from idx 3 must be 'lo'";
74 assert str3.substring(0, 3).equals("hel" as Object): "Substring from idx 0 to 3 must be 'hel'";
75 assert str3.substring(1, 3).equals("el" as Object): "Substring from idx 1 to 3 must be 'el'";
76 assert str3.substring(4, 5).equals("o" as Object): "Substring from idx 4 to 5 must be 'o'";
77 …assert str3.substring(4, 4).equals("" as Object): "Substring from idx 4 to 4 must be empty string";
78 assert !str3.substring(3, 5).equals("o" as Object): "Substring from idx 3 to 4 must not be 'o'";
80 …assert str3.concat(", world!").equals("hello, world!" as Object): "Strings must be equal after con…
82 …assert str3.replaceChar(c'e', c'a').equals("hallo" as Object): "Strings must be equal after replac…
83 …assert str3.replaceChar(c'l', c't').equals("hetto" as Object): "Strings must be equal after replac…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dstring_split_test.sts32 assert arr[0].equals("It"): "First substring must be `It`";
33 assert arr[1].equals("can't"): "Second substring must be `can't`";
34 assert arr[2].equals("be"): "Third substring must be `be`";
35 assert arr[3].equals("-"): "Third substring must be `-`";
36 assert arr[4].equals("there"): "Third substring must be `there`";
37 assert arr[5].equals("must"): "Third substring must be `must`";
38 assert arr[6].equals("be"): "Third substring must be `be`";
39 assert arr[7].equals("a"): "Third substring must be `a`";
40 assert arr[8].equals("gap"): "Third substring must be `gap`";
Dets_string_substring.sts46 if(!runtime.equals(original, subs)) return 1;
48 if(!runtime.equals(original, subs1)) return 2;
50 if(!runtime.equals(original, subs2)) return 3;
Dets_runtime_equals.sts16 //! CHECKER Runtime equals JIT
25 //! CHECKER Runtime equals AOT
/arkcompiler/runtime_core/static_core/plugins/ets/tests/lookup_by_name/
Dcorrect_case_ref.pa18 .function u1 std.core.String.equals(std.core.String a0, std.core.Object a1) <external>
47 call.short std.core.String.equals, v0, v1
69 call.short std.core.String.equals, v3, v4
77 call.short std.core.String.equals, v3, v4
85 call.short std.core.String.equals, v3, v4
93 call.short std.core.String.equals, v3, v4
Dcorrect_case_ref_2.pa18 .function u1 std.core.String.equals(std.core.String a0, std.core.Object a1) <external>
58 call.short std.core.String.equals, v1, v2
92 call.short std.core.String.equals, v4, v5
101 call.short std.core.String.equals, v4, v5
110 call.short std.core.String.equals, v4, v5
119 call.short std.core.String.equals, v4, v5
Dfield_case_ref.pa18 .function u1 std.core.String.equals(std.core.String a0, std.core.Object a1) <external>
46 call.short std.core.String.equals, v2, v3
54 call.short std.core.String.equals, v2, v3
/arkcompiler/runtime_core/libabckit/tests/ut/isa/isa_static/equals/
Dequals_static.cpp49 auto *equals = g_statG->iCreateEquals(graph, initObj, initObj2); in TransformEqualsIr() local
52 g_implG->iInsertBefore(equals, ret); in TransformEqualsIr()
55 g_implG->iSetInput(ret, equals, 0); in TransformEqualsIr()
66 …auto output = helpers::ExecuteStaticAbc(ABCKIT_ABC_DIR "ut/isa/isa_static/equals/equals_static.abc… in TEST_F()
71 ABCKIT_ABC_DIR "ut/isa/isa_static/equals/equals_static.abc", in TEST_F()
72 ABCKIT_ABC_DIR "ut/isa/isa_static/equals/equals_static_modified.abc", "foo", in TEST_F()
88 …output = helpers::ExecuteStaticAbc(ABCKIT_ABC_DIR "ut/isa/isa_static/equals/equals_static_modified… in TEST_F()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/equals/
DCMakeLists.txt35 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/equals/${NAME}.pa
45 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/equals/${NAME}.pa
55 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/equals/${NAME}.pa
66 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/equals/${NAME}.pa
78 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/equals/${NAME}.pa
90 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/equals/${NAME}.pa
124 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/equals/${ARG_FILE}.pa
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/05.evaluation_of_other_expressions/
Dmcall.sts40 if (!a.meth("X").equals("XA")) return 1;
43 if (!a.meth("Y").equals("YAB")) return 1;
46 if (!i.meth("Z").equals("ZA")) return 1;
49 if (!i.meth("W").equals("WAB")) return 1;
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DRegisterSpiller.sts25 assert !a.equals(b);
26 assert a.equals(c);
27 assert !b.equals(c);
43 assert (s1 + s2 + s3 + s4).equals(s5);
DskippedTest.sts31 console.print(a.equals(b));
33 console.print(a.equals(c));
35 console.print(b.equals(c));
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
Doperand.cpp108 bool MemOperand::Equals(Operand &op) const in Equals() function in maplebe::MemOperand
113 return Equals(static_cast<MemOperand &>(op)); in Equals()
116 bool MemOperand::Equals(const MemOperand &op) const in Equals() function in maplebe::MemOperand
125 return (GetBaseRegister()->Equals(*op.GetBaseRegister()) && in Equals()
126 GetOffsetImmediate()->Equals(*op.GetOffsetImmediate())); in Equals()
128 return (GetBaseRegister()->Equals(*op.GetBaseRegister()) && in Equals()
129 GetIndexRegister()->Equals(*op.GetIndexRegister()) && in Equals()
134 …return (GetBaseRegister()->Equals(*op.GetBaseRegister()) && GetSymbolName() == op.GetSymbolName() … in Equals()
135 GetOffsetImmediate()->Equals(*op.GetOffsetImmediate())); in Equals()
/arkcompiler/runtime_core/libabckit/include/cpp/headers/arkts/
Dmodule.h84 …@param [ in ] name - Import name. For namespace imports equals to "*". For default imports equals
110 …@param [ in ] name - Import name. For namespace imports equals to "*". For default imports equals
112 …* @param [ in ] alias - Alias. For namespace imports equals to "*". For default imports equals to …
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/
Dtest_check_test_regexp_result.j225 console.println("isCorrect field of actual is not equals to expected")
32 console.println("index field of actual is not equals to expected")
39 console.println("size of result array of actual is not equals to expected")
46 if (!actual.result[i].equals(expected.result[i])) {
48 console.println("content of result array from actual is not equals to expected");
61 console.println("content of result array from actual is not equals to expected");
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DRegExpMatchAllTest.sts79 console.println("isCorrect field of actual is not equals to expected")
86 console.println("index field of actual is not equals to expected")
93 console.println("size of result array of actual is not equals to expected")
100 if (!actual.result[i].equals(expected.result[i])) {
102 console.println("content of result array from actual is not equals to expected");
115 console.println("content of result array from actual is not equals to expected");
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/
DTypeLambdaTypeTest.sts40 test(fooType.getResultType().equals(baseType), " Base result type") +
42 test(foo2Type.getParameter(0).getType().equals(baseType), " base type param") +
43 test(foo2Type.getResultType().equals(derivedType), " Derived result type")
DTypeMethodTest.sts96 … test(serializeMethodType.getReceiverType().equals(pt), " has Point receiver type") +
98 test(addMethodType.getParameter(0).getType().equals(pt), " Point parameter") +
99 … test(addMethodType.getResultType().equals(pt), " has Point result type") +
100 … test(addMethodType.getReceiverType().equals(pt), " has Point receiver type") +
104 … test(cType.getReceiverType().equals(hwt), " has HTMLWriter receiver type") +
107 … test(getterType.getReceiverType().equals(hwt), " has HTMLWriter receiver type") +
111 … test(setterType.getReceiverType().equals(hwt), " has HTMLWriter receiver type")
DTypeInterfaceTypeTest.sts80 test(ict.getInterface(0).equals(iat), " A interface") +
92 test(idt.getInterface(0).equals(ibt), " B interface") +
93 test(idt.getInterface(1).equals(ict), " C interface") +
DTypeFieldTest.sts59 test(xf.getOwnerType().equals(Type.of(new Point())), " OwnerType: Point") +
66 … test(sf.getOwnerType().equals(pt), " OwnerType: Point3D") +
73 … test(zf.getOwnerType().equals(pt), " OwnerType: Point3D") +
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DUndefined.sts30 public equals(to: NullishType): boolean {
31 throw new Error("Internal error: undefined.equals was called!")
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/09.field_access_expressions/02.accessing_superclass_fields/
Dsuper_in_object.sts36 public equals(to: Object): boolean {
37 return runtime.equals(this, to);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/07.reference_equality/
Dreference_types_equality_operator.sts19 desc: The value equality operator a == b semantically equals a === null ? b === null a.equals(b) if…
Darray_types_equality_operator.sts19 desc: "The value equality operator a == b semantically equals a === null ? b === null : a.equals(b)…
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Dunion_types_3.sts24 assert ((x0 as String) + "STR2").equals("STR1STR2"): "Error! Must be `STR1STR2`";
27 assert (x1 as String).equals("AAA"): "Error! Must be `AAA`";

12345678910