/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | inferenceOfNullableObjectTypesWithCommonBase.ts | 21 function equal<T>(a: T, b: T) { } 33 equal(v as B, v as undefined | D) 34 AssertType(equal(v as B, v as undefined | D), "void"); 35 AssertType(equal, "<T>(T, T) => void"); 41 equal(v as undefined | D, v as B) 42 AssertType(equal(v as undefined | D, v as B), "void"); 43 AssertType(equal, "<T>(T, T) => void"); 49 equal<undefined | B>(v as B, v as undefined | D) 50 AssertType(equal<undefined | B>(v as B, v as undefined | D), "void"); 51 AssertType(equal, "<T>(T, T) => void"); [all …]
|
/arkcompiler/ets_frontend/ts2panda/tests/ |
D | scope.test.ts | 38 expect(lv).to.be.equal(0); 39 expect(sp).to.be.equal(scope); 48 expect(lv).to.be.equal(0); 49 expect(sp).to.be.equal(scope); 58 expect(lv).to.be.equal(0); 59 expect(sp).to.be.equal(scope); 68 expect(lv).to.be.equal(0); 69 expect(sp).to.be.equal(scope); 86 expect(lv).to.be.equal(0); 87 expect(sp).to.be.equal(globalScope); [all …]
|
D | lexenv.test.ts | 73 expect(globalScope, "root is null!").to.not.equal(null); 75 …expect(globalScope.getChildVariableScope().length, "should not have any children!").to.be.equal(0); 76 … expect(globalScope.getParentVariableScope(), "should not have any children!").to.be.equal(null); 105 expect(children.length, "should have 2 child!").to.be.equal(2); 106 expect(parent, "should not have any children!").to.be.equal(null); 107 … expect(bindingNode, "functionblock.root should equal to sourceFile").to.be.deep.equal(sourceFile); 114 expect(parentOfSon0, "son's parent should equal root!").deep.equal(globalScope); 115 …expect(bindingNodeOfSon0.kind, "son's parent should equal root!").deep.equal(ts.SyntaxKind.Functio… 121 expect(parentOfGrandson0).to.be.equal(son0); 122 expect(grandgrandchiildren0.length).to.be.equal(0); [all …]
|
/arkcompiler/ets_frontend/ts2panda/tests/statements/ |
D | for.test.ts | 55 expect(jumps.length).to.equal(1); 60 expect(jmpLabel).to.equal(insns[0]); 67 expect(jumps.length).to.equal(1); 71 expect(insns[4]).to.equal(jumps[0]); 72 expect(jmpLabel).to.equal(insns[2]); 79 expect(jumps.length).to.equal(2); 84 expect(jmpLabel).to.equal(insns[2]); 85 expect(jgezLabel).to.equal(insns[10]); 87 expect(insns[7]).to.equal(jumps[0]); 88 expect(insns[9]).to.equal(jumps[1]); [all …]
|
D | doWhile.test.ts | 45 expect(jumps.length).to.equal(1); 49 expect(jmpLabel).to.equal(insns[0]); 58 expect(jumps.length).to.equal(2); 63 expect(jmpLabel).to.equal(insns[2]); 64 expect(jgezLabel).to.equal(insns[17]); 66 expect(insns[15]).to.equal(jumps[0]); 67 expect(insns[16]).to.equal(jumps[1]); 103 expect(targetLabel).to.equal(insns[6]); 139 expect(targetLabel).to.equal(insns[13]);
|
D | forIn.test.ts | 76 expect(jumps.length).to.equal(2); 116 expect(jmp.getTarget()).to.equal(insns[3]); 117 expect(jeqz.getTarget()).to.equal(insns[insns.length - 1]); 154 expect(jumps.length).to.equal(3); 191 expect(jumps.length).to.equal(3); 201 …expect((<DiagnosticError>err).code).to.equal(DiagnosticCode.Property_destructuring_pattern_expecte…
|
D | variableDeclaration.test.ts | 179 expect(i).to.not.be.equal(undefined); 197 expect(i).to.be.equal(undefined); 214 expect(i).to.be.equal(undefined); 231 expect(i).to.be.equal(undefined); 241 …expect((<DiagnosticError>err).code).to.equal(DiagnosticCode.Lexical_declaration_let_not_allowed_in…
|
D | forOf.test.ts | 125 expect(jumps.length).to.equal(4); 215 expect(jumps.length).to.equal(5); 316 expect(jumps.length).to.equal(6); 326 …expect((<DiagnosticError>err).code).to.equal(DiagnosticCode.Property_destructuring_pattern_expecte…
|
D | while.test.ts | 152 expect(targetLabel).to.equal(insns[2]); 185 expect(targetLabel).to.equal(insns[12]);
|
/arkcompiler/ets_frontend/ts2panda/tests/expression/ |
D | conditions.test.ts | 48 expect(jumps.length).to.equal(1); 52 expect(targetLabel).to.equal(insns[insns.length - 2]); 62 expect(jumps.length).to.equal(1); 66 expect(targetLabel).to.equal(insns[insns.length - 2]); 79 expect(jumps.length).to.equal(2); 80 expect(labels.length).to.equal(2); 85 expect(elseLabel).to.equal(labels[0]); 86 expect(endIfLabel).to.equal(labels[1]); 88 expect(elseLabel).to.equal(insns[insns.length - 5]); 89 expect(endIfLabel).to.equal(insns[insns.length - 2]); [all …]
|
D | functionExpression.test.ts | 100 expect(insns.operands[1]).to.equal('UnitTest.a'); 128 expect(insns.operands[1]).to.equal('UnitTest.a'); 157 expect(insns.operands[1]).to.equal('UnitTest.a'); 195 expect(insns.operands[1]).to.equal('UnitTest.p'); 214 …expect((<DiagnosticError>err).code).to.equal(DiagnosticCode.Line_terminator_not_permitted_before_a… 300 expect(insns.operands[1]).to.equal('UnitTest.a'); 364 expect(insns.operands[1]).to.equal('UnitTest.a'); 381 …expect((<DiagnosticError>err).code).to.equal(DiagnosticCode.A_rest_parameter_or_binding_pattern_ma…
|
D | binary.test.ts | 112 expect(jumps.length).to.equal(3); 142 expect(jumps.length).to.equal(3); 173 expect(jumps.length).to.equal(3);
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | small_vector_test.cpp | 72 ASSERT_TRUE(std::equal(values.begin(), values.begin() + 5, vector.begin())); in TestVectorGrow() 103 ASSERT_TRUE(std::equal(vector.begin(), vector.end(), values.begin())); in TestVectorIteration() 127 ASSERT_TRUE(std::equal(const_vector.begin(), const_vector.end(), values.begin())); in TestVectorIteration() 133 ASSERT_TRUE(std::equal(vector.begin(), vector.end(), values.begin())); in TestVectorIteration() 336 ASSERT_TRUE(std::equal(vector1.begin(), vector1.end(), vector2.begin())); in TEST_F() 351 ASSERT_TRUE(std::equal(vector1.begin(), vector1.end(), vector2.begin())); in TEST_F() 367 ASSERT_TRUE(std::equal(vector1.begin(), vector1.end(), values.begin())); in TEST_F() 382 ASSERT_TRUE(std::equal(vector1.begin(), vector1.end(), values.begin())); in TEST_F() 394 ASSERT_TRUE(std::equal(vector2.begin(), vector2.end(), vector1.begin())); in TEST_F() 404 ASSERT_TRUE(std::equal(vector2.begin(), vector2.end(), vector1.begin())); in TEST_F() [all …]
|
/arkcompiler/ets_frontend/es2panda/test/type_extractor/testcases_with_assert/projects/test-import-export/ |
D | import-main.ts | 29 let equal = (times(factor, PI) == multiply(factor, PI)); variable 40 AssertType(equal, "boolean");
|
/arkcompiler/ets_frontend/ts2panda/tests/example_hello/ |
D | hello.test.ts | 24 expect(result).to.equal('Hello World!');
|
/arkcompiler/runtime_core/compiler/tests/ |
D | graph_comparator.h | 41 …return std::equal(graph1->GetBlocksRPO().begin(), graph1->GetBlocksRPO().end(), graph2->GetBlocksR… in Compare() 69 …return std::equal(block1->AllInsts().begin(), block1->AllInsts().end(), block2->AllInsts().begin(), in Compare() 93 if (!std::equal(inst1_begin, inst1_end, inst2_begin, eq_lambda)) { in Compare() 279 if (!std::equal(sv_st1->GetImmediates()->begin(), sv_st1->GetImmediates()->end(), in Compare()
|
/arkcompiler/runtime_core/compiler/docs/ |
D | interface_inline_cache.md | 16 …eck whether the class is the same as the last cached class,if equal: use cache; if no equal: goto … 50 4. number of cache equal "interface call" number in this an file
|
D | deoptimize_elimination_doc.md | 21 * Constant is equal 0 -> `DeoptimizeIf` is replaced by `NOP`.
|
/arkcompiler/ets_runtime/test/moduletest/equal/ |
D | BUILD.gn | 16 host_moduletest_action("equal") {
|
/arkcompiler/ets_runtime/test/moduletest/container/ |
D | container_list.js | 46 map.set("test list equal:", list.equal(list1)) 49 map.set("test list equal:", list.equal(list1) === false) 207 map.set("test list equal:", proxy.equal(proxy1) === false)
|
D | container_lightweightset.js | 79 res.set("test equal:", !dProxy.equal(obj));
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | circuit_ir_specification.md | 366 …* `0001` `EQ`: yields true if the operands are equal, false otherwise. No sign interpretation is n… 368 … interprets the operands as unsigned values and yields true if op1 is greater than or equal to op2. 370 …E`: interprets the operands as unsigned values and yields true if op1 is less than or equal to op2. 373 …`: interprets the operands as signed values and yields true if op1 is greater than or equal to op2. 375 …SLE`: interprets the operands as signed values and yields true if op1 is less than or equal to op2. 392 * `0001` `OEQ`: ordered and equal 394 * `0011` `OGE`: ordered and greater than or equal 396 * `0101` `OLE`: ordered and less than or equal 397 * `0110` `ONE`: ordered and not equal 400 * `1001` `UEQ`: unordered or equal [all …]
|
/arkcompiler/ets_runtime/test/moduletest/ |
D | BUILD.gn | 49 "equal", 171 "equal",
|
/arkcompiler/ets_runtime/test/moduletest/typearray/ |
D | expect_output.txt | 36 not-equal
|
/arkcompiler/runtime_core/tests/checked/ |
D | README.md | 33 * **INST_NOT** (inst: pattern) equal to `NOT INST`, i.e. check that instruction is not exist 36 * **BLOCK_COUNT** () equal to `IR_COUNT ("BB ")`, i.e. search specified basic blocks and counts the…
|