| /arkcompiler/ets_frontend/arkguard/test/ut/initialization/ |
| D | ConfigResolver-hsp.spec.ts | 307 expect(finalConfig.reservedNames.length).to.equal(0); 308 expect(finalConfig.reservedFileNames.length).to.equal(0); 309 expect(finalConfig.keepComments.length).to.equal(0); 310 expect(finalConfig.keepSourceOfPaths.length).to.equal(0); 311 expect(finalConfig.universalReservedPropertyNames.length).to.equal(0); 312 expect(finalConfig.universalReservedGlobalNames.length).to.equal(0); 313 expect(finalConfig.keepUniversalPaths.length).to.equal(0); 314 expect(finalConfig.excludeUniversalPaths.length).to.equal(0); 315 expect(finalConfig.excludePathSet.size).to.equal(0); 382 expect(finalConfig.reservedNames.length).to.equal(0); [all …]
|
| D | Initializer.spec.ts | 27 expect(historyAllUnobfuscatedNamesMap.size).to.equal(1); 28 expect(historyUnobfuscatedPropMap.size).to.equal(1); 30 expect(historyAllUnobfuscatedNamesMap.size).to.equal(0); 31 expect(historyUnobfuscatedPropMap.size).to.equal(0);
|
| D | ConfigResolver.spec.ts | 111 expect(ob1.printNameCache).to.equal('test'); 112 expect(ob1.printKeptNamesPath).to.equal('./test/ut/initialization/printKeptNamesPath.txt'); 113 expect(ob1.applyNameCache).to.equal('test case'); 134 expect(config1.reservedPropertyNames).to.deep.equal(['prop1', 'prop2']); 135 expect(config1.reservedGlobalNames).to.deep.equal(['global1', 'global2']); 136 expect(config1.keepComments).to.deep.equal(['comment1', 'comment2']); 137 expect(config1.excludePathSet).to.deep.equal(new Set(['path1', 'path2'])); 174 expect(config.reservedPropertyNames).to.deep.equal(['prop1', 'prop2']); 175 expect(config.reservedGlobalNames).to.deep.equal(['global1', 'global2']); 176 expect(config.keepComments).to.deep.equal(['comment1', 'comment2']); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/bridges/lib/ |
| D | EtsNapiTests.cpp | 52 [[maybe_unused]] static bool Equal(double a1, double a2) in Equal() function 581 assert(Equal(a1, 1.1)); in ETS_EtsNapiTests_printFloat1() 588 assert(Equal(a1, 1.1) && Equal(a2, 2.2)); in ETS_EtsNapiTests_printFloat2() 596 assert(Equal(a1, 1.1) && Equal(a2, 2.2) && Equal(a3, 3.3)); in ETS_EtsNapiTests_printFloat3() 604 assert(Equal(a1, 1.1) && Equal(a2, 2.2) && Equal(a3, 3.3) && Equal(a4, 4.4)); in ETS_EtsNapiTests_printFloat4() 613 assert(Equal(a1, 1.1) && Equal(a2, 2.2) && Equal(a3, 3.3) && Equal(a4, 4.4) && Equal(a5, 5.5)); in ETS_EtsNapiTests_printFloat5() 622 …assert(Equal(a1, 1.1) && Equal(a2, 2.2) && Equal(a3, 3.3) && Equal(a4, 4.4) && Equal(a5, 5.5) && E… in ETS_EtsNapiTests_printFloat6() 632 …assert(Equal(a1, 1.1) && Equal(a2, 2.2) && Equal(a3, 3.3) && Equal(a4, 4.4) && Equal(a5, 5.5) && E… in ETS_EtsNapiTests_printFloat7() 633 Equal(a7, 7.7)); in ETS_EtsNapiTests_printFloat7() 643 …assert(Equal(a1, 1.1) && Equal(a2, 2.2) && Equal(a3, 3.3) && Equal(a4, 4.4) && Equal(a5, 5.5) && E… in ETS_EtsNapiTests_printFloat8() [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/ut/utils/ |
| D | NameCacheUtils.spec.ts | 42 …expect(content).to.equal(JSON.stringify({ key1: 'value1', key2: 'value2' }, null, spaceOfNameCache… 68 expect(result).to.deep.equal(testData); 78 expect(result.size).to.equal(0); 88 expect(result).to.deep.equal(expectedMap); 105 expect(historyNameCache.get('#key1')).to.equal('value1'); 106 expect(historyNameCache.get('#key2')).to.equal('value2'); 107 expect(historyNameCache.get('#key3')).to.equal('newValue3'); 108 expect(historyNameCache.get('#key4')).to.equal('newValue4'); 119 expect(historyNameCache.get('#key1:11:2')).to.equal('value1'); 120 expect(historyNameCache.get('#key2:11:3')).to.equal('value2'); [all …]
|
| D | ProjectCollections.spec.ts | 47 expect(targetSet.size).to.be.equal(4); 58 expect(set.size).to.be.equal(3); 68 expect(array).to.deep.equal([1, 2, 3]) 72 it('should return true for equal sets', () => { 98 …expect(projectWhiteListManager.getFileWhiteListsCachePath()).to.be.equal('test/ut/utils/obfuscatio… 99 …expect(projectWhiteListManager.getProjectWhiteListCachePath()).to.be.equal('test/ut/utils/obfuscat… 101 expect(projectWhiteListManager.getFileWhiteListMap().size).to.be.equal(0); 111 expect(fileWhiteLists.fileKeepInfo.structProperties.size).to.be.equal(0); 112 expect(fileWhiteLists.fileKeepInfo.exported?.propertyNames.size).to.be.equal(0); 113 expect(fileWhiteLists.fileKeepInfo.exported?.globalNames.size).to.be.equal(0); [all …]
|
| D | PrinterUtils.spec.ts | 111 expect(eventData?.duration).to.equal(0); 112 expect(eventData?.endMemory).to.equal(0); 113 expect(eventData?.memoryUsage).to.equal(0); 121 expect(eventData?.duration).to.equal(0); 122 expect(eventData?.endMemory).to.equal(0); 123 expect(eventData?.memoryUsage).to.equal(0); 143 expect(eventData?.duration).to.not.equal(0); 144 expect(eventData?.endMemory).to.not.equal(0); 145 expect(eventData?.memoryUsage).to.not.equal(0); 154 expect(printer.getFilesTimeSum()).to.not.equal(0); [all …]
|
| D | FileUtils.2.spec.ts | 68 expect(result).to.deep.equal(jsonContent); 90 expect(result).to.equal(''); 95 expect(result).to.equal('txt'); 100 expect(result).to.equal('txt'); 181 expect(result).to.equal('C:/path/to/file.txt'); 187 expect(result).to.equal('/path/to/file.txt'); 193 …expect(FileUtils.getAbsPathBaseConfigPath('/abs/path/abc', 'file.txt')).to.equal('/abs/path/file.t… 198 …expect(FileUtils.getAbsPathBaseConfigPath('not_abs/path/abc', 'file.txt')).to.equal('not_abs/path/… 202 expect(FileUtils.getAbsPathBaseConfigPath('', '')).to.equal('.')
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
| D | runtime_adapter.cpp | 25 bool equal = true; in IsEqual() local 30 … auto visitType = [&equal, &shorties, &shortyIt, &refTypes, &refTypeIt, &pf](panda_file::Type type, in IsEqual() 32 if (!equal) { in IsEqual() 36 equal = false; in IsEqual() 41 equal = false; in IsEqual() 45 return equal && shortyIt == shorties.end() && refTypeIt == refTypes.end(); in IsEqual()
|
| /arkcompiler/runtime_core/libabckit/src/adapter_static/ |
| D | runtime_adapter_static.cpp | 29 bool equal = true; in IsEqual() local 34 … auto visitType = [&equal, &shorties, &shortyIt, &refTypes, &refTypeIt, &pf](panda_file::Type type, in IsEqual() 36 if (!equal) { in IsEqual() 40 equal = false; in IsEqual() 45 equal = false; in IsEqual() 49 return equal && shortyIt == shorties.end() && refTypeIt == refTypes.end(); in IsEqual()
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_bigint_test.cpp | 44 …T_EQ(BigInt::Compare(bigint1.GetTaggedValue(), bigint1.GetTaggedValue()), ComparisonResult::EQUAL); in HWTEST_F_L0() 55 … EXPECT_EQ(BigInt::Compare(zero.GetTaggedValue(), zero.GetTaggedValue()), ComparisonResult::EQUAL); in HWTEST_F_L0() 74 * @tc.name: Equal & SameValue & SameValueZero 90 bool result1 = BigInt::Equal(maxSafeInt.GetTaggedValue(), minSafeInt.GetTaggedValue()); in HWTEST_F_L0() 96 result1 = BigInt::Equal(maxSafeInt.GetTaggedValue(), minusMinSafeInt.GetTaggedValue()); in HWTEST_F_L0() 102 result1 = BigInt::Equal(minSafeInt.GetTaggedValue(), minusMaxSafeInt.GetTaggedValue()); in HWTEST_F_L0() 115 result1 = BigInt::Equal(unsafeInt2.GetTaggedValue(), minusUnsafeInt1.GetTaggedValue()); in HWTEST_F_L0() 171 EXPECT_TRUE(BigInt::Equal(addOpRes.GetTaggedValue(), maxSafeIntPlusOne.GetTaggedValue())); in HWTEST_F_L0() 172 EXPECT_TRUE(BigInt::Equal(andRes.GetTaggedValue(), maxSafeIntPlusOne.GetTaggedValue())); in HWTEST_F_L0() 176 EXPECT_TRUE(BigInt::Equal(addOpRes1.GetTaggedValue(), bigint2.GetTaggedValue())); in HWTEST_F_L0() [all …]
|
| D | tagged_value_test.cpp | 1012 HWTEST_F_L0(JSTaggedValueTest, Equal) in HWTEST_F_L0() argument 1014 …ASSERT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Undefined(… in HWTEST_F_L0() 1016 ASSERT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0() 1018 ASSERT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0() 1020 ASSERT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0() 1022 … ASSERT_FALSE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0() 1024 … ASSERT_FALSE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0() 1026 … ASSERT_FALSE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue::Null()), in HWTEST_F_L0() 1032 ASSERT_TRUE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), in HWTEST_F_L0() 1034 ASSERT_FALSE(JSTaggedValue::Equal(thread, JSHandle<JSTaggedValue>(thread, JSTaggedValue(1)), in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | RegExpConstructorTest.sts | 85 console.println("Source " + actual.source + " is not equal expected " + pattern); 89 console.println("Flags " + actual.flags + " is not equal expected " + flags); 94 console.println("Global " + actual.global + " is not equal expected " + global); 98 console.println("Unicode " + actual.unicode + " is not equal expected " + unicode); 102 console.println("dotAll " + actual.dotAll + " is not equal expected " + dotAll); 106 console.println("hasIndices " + actual.hasIndices + " is not equal expected " + hasIndices); 110 console.println("multiline " + actual.multiline + " is not equal expected " + multiline); 114 console.println("sticky " + actual.sticky + " is not equal expected " + sticky); 118 … console.println("unicodeSets " + actual.unicodeSets + " is not equal expected " + unicodeSets);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/01.numerical_equality_operators/ |
| D | char_eq.params.yaml | 16 # primitives equal 21 # with boxed char equal 26 # primitives not equal 30 # with boxed char not equal
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
| D | aarch64_cc.def | 16 CONDCODE(EQ, 0x0) /* equal */ 17 CONDCODE(NE, 0x1) /* not equal */ 28 CONDCODE(GE, 0xa) /* signed greater than or equal */ 31 CONDCODE(LE, 0xd) /* signed less than or equal */
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/strings/ |
| D | string_api.sts | 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… 84 …assert str3.replaceChar(c'm', c'v').equals("hello" as Object): "Strings must be equal after replac… 91 …quals("|pRef|AbCd|SUF|:|pRef|Xtt|SUF|:|pRef|G|SUF|" as Object): "Strings must be equal after join"; 94 "Strings must be equal after toLowerCase"; 96 "Strings must be equal after toUpperCase"; 99 assert str1.padLeft(c'.', 0).equals("Sky" as Object): "String must be equal 'Sky'"; 100 assert str1.padLeft(c'.', 3).equals("Sky" as Object): "String must be equal 'Sky'"; 101 assert str1.padLeft(c'.', 4).equals(".Sky" as Object): "String must be equal '.Sky'"; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/ |
| D | string_equals.sts | 19 assert str != null_str: "String must not be equal to null"; 20 assert null_str != str: "Null string must not be equal to non-null one"; 21 assert null_str == null_str: "Null values of type String must be equal";
|
| /arkcompiler/ets_frontend/arkguard/test/ut/transformer/ |
| D | RenamePropertiesTransformer.spec.ts | 66 …expect((node.indexType as LiteralTypeNode).literal).not.to.be.equal((parentNodes.indexType as Lite… 91 …expect((node.indexType as LiteralTypeNode).literal).to.be.equal((parentNodes.indexType as LiteralT… 116 …expect((node.indexType as LiteralTypeNode).literal).to.be.equal((parentNodes.indexType as LiteralT… 144 …dexType as UnionTypeNode).types[0] as LiteralTypeNode).literal).not.to.be.equal(((parentNodes.inde… 145 …dexType as UnionTypeNode).types[1] as LiteralTypeNode).literal).not.to.be.equal(((parentNodes.inde… 173 …expect(((node.indexType as UnionTypeNode).types[0] as LiteralTypeNode).literal).to.be.equal(((pare… 174 …expect(((node.indexType as UnionTypeNode).types[1] as LiteralTypeNode).literal).to.be.equal(((pare… 202 …expect(((node.indexType as UnionTypeNode).types[0] as LiteralTypeNode).literal).to.be.equal(((pare… 203 …expect(((node.indexType as UnionTypeNode).types[1] as LiteralTypeNode).literal).to.be.equal(((pare…
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | conditionalExpression2.sts | 31 assert foo() == 41: "Error! foo() must be equal 41"; 32 assert foo("xyz") == 42: "Error! foo(\"xyz\") must be equal 42"; 33 assert foo("NFD") == 0: "Error! foo(\"NFD\") must be equal 0";
|
| D | objectLiteralInterfaceType.sts | 41 assert i.f == f : "\"f\" is not equal \"" + i.f + "\" != \"" + f + "\"" 42 assert i.x == x : "\"x\" is not equal \"" + i.x + "\" != \"" + x + "\"" 43 assert i.s == s : "\"s\" is not equal \"" + i.s + "\" != \"" + s + "\"" 44 assert i.iv.v == ivv : "\"innervalue.v\" is not equal \"" + i.iv.v + "\" != \"" + ivv + "\""
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/test-lists/ets-func-tests/ |
| D | ets-func-tests-excluded-TSAN.txt | 10 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-equal-zero-negative-number.sts 11 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-equal-zero.sts 12 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-equal.sts 21 spec/03.types/References_Types/Bigint/bigint-arithmetic-div-equal.sts 45 spec/03.types/References_Types/Bigint/bigint-arithmetic-mul-equal.sts 54 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-equal-zero-negative.sts 55 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-equal-zero.sts
|
| D | ets-func-tests-excluded-JIT-REPEATS.txt | 8 spec/03.types/References_Types/Bigint/bigint-arithmetic-div-equal-zero-negative-number.sts 11 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-equal.sts 42 spec/03.types/References_Types/Bigint/bigint-arithmetic-div-equal.sts 48 spec/03.types/References_Types/Bigint/bigint-arithmetic-div-equal-operands-negative-number.sts 75 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-equal-zero.sts 78 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-equal-zero-negative.sts 79 spec/03.types/References_Types/Bigint/bigint-arithmetic-sub-equal-zero.sts 81 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-equal.sts 86 spec/03.types/References_Types/Bigint/bigint-arithmetic-add-equal-zero-negative-number.sts 98 spec/03.types/References_Types/Bigint/bigint-arithmetic-mul-equal.sts
|
| /arkcompiler/ets_frontend/arkguard/test/ut/arkobfuscator/ |
| D | ArkObfuscator2.spec.ts | 229 expect(result).to.deep.equal({ content: undefined }); 238 expect(result).to.deep.equal({ content: undefined }); 369 expect(PropCollections.globalMangledTable.size).to.equal(0); 464 expect(UnobfuscationCollections.reservedStruct.size).to.equal(0); 465 expect(UnobfuscationCollections.reservedStrProp.size).to.equal(0); 466 expect(UnobfuscationCollections.reservedExportNameAndProp.size).to.equal(0); 467 expect(UnobfuscationCollections.reservedEnum.size).to.equal(0); 498 expect(obfuscator.customProfiles.mKeepFileSourceCode?.mKeepSourceOfPaths).to.equal(paths); 552 expect(PropCollections.globalMangledTable.size).to.equal(0); 553 expect(PropCollections.historyMangledTable.size).to.equal(0); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | mcr_circuit_builder.h | 32 return Equal(Int64And(x, Int64(JSTaggedValue::TAG_MARK)), in TaggedIsInt() 48 return Equal(Int64And(x, Int64(JSTaggedValue::TAG_MARK)), in TaggedIsObject() 264 result = Equal(objType, Int32(static_cast<int32_t>(JSType::SYMBOL))); in TaggedIsSymbol() 290 result = Equal(objType, Int32(static_cast<int32_t>(JSType::SYMBOL))); in TaggedIsStringOrSymbol() 311 result = Equal(objType, Int32(static_cast<int32_t>(JSType::PROTO_CHANGE_MARKER))); in TaggedIsProtoChangeMarker() 323 return Equal(objType, Int32(static_cast<int32_t>(JSType::JS_MAP))); in TaggedObjectIsJSMap() 329 return Equal(objType, Int32(static_cast<int32_t>(JSType::JS_SET))); in TaggedObjectIsJSSet() 335 return Equal(objType, Int32(static_cast<int32_t>(JSType::JS_DATE))); in TaggedObjectIsJSDate() 348 return Equal(objType, Int32(static_cast<int32_t>(JSType::JS_ARRAY))); in TaggedObjectIsJSArray() 354 return Equal(objType, Int32(static_cast<int32_t>(JSType::JS_BOUND_FUNCTION))); in TaggedIsBoundFunction() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_string_substring.sts | 18 //! CHECKER Equal Substring JIT 27 //! CHECKER Equal Substring AOT 37 //! CHECKER Equal Substring INT
|