Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 68) sorted by relevance

123

/ark/ts2abc/ts2panda/tests/expression/
Dliteral.test.ts48 let expected = [ variable
52 expect(checkInstructions(insns, expected)).to.be.true;
57 let expected = [ variable
61 expect(checkInstructions(insns, expected)).to.be.true;
66 let expected = [ variable
70 expect(checkInstructions(insns, expected)).to.be.true;
75 let expected = [ variable
79 expect(checkInstructions(insns, expected)).to.be.true;
84 let expected = [ variable
88 expect(checkInstructions(insns, expected)).to.be.true;
[all …]
Dbinary.test.ts59 let expected = [ variable
66 expect(checkInstructions(insns, expected)).to.be.true;
72 let expected = [ variable
79 expect(checkInstructions(insns, expected)).to.be.true;
87 let expected = [ variable
103 expect(checkInstructions(insns, expected)).to.be.true;
115 let expected = [ variable
132 expect(checkInstructions(insns, expected)).to.be.true;
145 let expected = [ variable
162 expect(checkInstructions(insns, expected)).to.be.true;
[all …]
DcmpBinary.test.ts60 let expected = [ variable
73 expect(checkInstructions(insns, expected)).to.be.true;
82 let expected = [ variable
95 expect(checkInstructions(insns, expected)).to.be.true;
104 let expected = [ variable
117 expect(checkInstructions(insns, expected)).to.be.true;
126 let expected = [ variable
139 expect(checkInstructions(insns, expected)).to.be.true;
148 let expected = [ variable
161 expect(checkInstructions(insns, expected)).to.be.true;
[all …]
DoperationEqual.test.ts48 let expected = [ variable
58 expect(checkInstructions(insns, expected)).to.be.true;
66 let expected = [ variable
76 expect(checkInstructions(insns, expected)).to.be.true;
84 let expected = [ variable
94 expect(checkInstructions(insns, expected)).to.be.true;
102 let expected = [ variable
112 expect(checkInstructions(insns, expected)).to.be.true;
120 let expected = [ variable
130 expect(checkInstructions(insns, expected)).to.be.true;
[all …]
Ddelete.test.ts41 let expected = [ variable
52 expect(checkInstructions(insns, expected)).to.be.true;
64 let expected = [ variable
76 expect(checkInstructions(insns, expected)).to.be.true;
88 let expected = [ variable
96 expect(checkInstructions(insns, expected)).to.be.true;
103 let expected = [ variable
110 expect(checkInstructions(insns, expected)).to.be.true;
118 let expected = [ variable
125 expect(checkInstructions(insns, expected)).to.be.true;
[all …]
DprefixOperations.test.ts46 let expected = [ variable
57 expect(checkInstructions(insns, expected)).to.be.true;
65 let expected = [ variable
76 expect(checkInstructions(insns, expected)).to.be.true;
84 let expected = [ variable
94 expect(checkInstructions(insns, expected)).to.be.true;
102 let expected = [ variable
112 expect(checkInstructions(insns, expected)).to.be.true;
120 let expected = [ variable
135 expect(checkInstructions(insns, expected)).to.be.true;
[all …]
DnumericLiteral.test.ts36 let expected = [new LdaDyn(new VReg())]; variable
37 expect(checkInstructions(insns, expected)).to.be.true;
45 let expected = [new LdaDyn(new VReg())]; variable
46 expect(checkInstructions(insns, expected)).to.be.true;
53 let expected = [new LdaiDyn(new Imm(1))]; variable
54 expect(checkInstructions(insns, expected)).to.be.true;
61 let expected = [new FldaiDyn(new Imm(2147483648))]; variable
62 expect(checkInstructions(insns, expected)).to.be.true;
69 let expected = [new FldaiDyn(new Imm(1.1))]; variable
70 expect(checkInstructions(insns, expected)).to.be.true;
DtypeOf.test.ts38 let expected = [ variable
44 expect(checkInstructions(insns, expected)).to.be.true;
51 let expected = [ variable
62 expect(checkInstructions(insns, expected)).to.be.true;
68 let expected = [ variable
74 expect(checkInstructions(insns, expected)).to.be.true;
80 let expected = [ variable
86 expect(checkInstructions(insns, expected)).to.be.true;
Dcall.test.ts49 let expected = [ variable
56 expect(checkInstructions(insns, expected)).to.be.true;
66 let expected = [ variable
76 expect(checkInstructions(insns, expected)).to.be.true;
86 let expected = [ variable
95 expect(checkInstructions(insns, expected)).to.be.true;
108 let expected = [ variable
129 expect(checkInstructions(insns, expected)).to.be.true;
140 let expected = [ variable
151 expect(checkInstructions(insns, expected)).to.be.true;
Dnew.test.ts44 let expected = [ variable
54 expect(checkInstructions(insns, expected)).to.be.true;
62 let expected = [ variable
72 expect(checkInstructions(insns, expected)).to.be.true;
81 let expected = [ variable
94 expect(checkInstructions(insns, expected)).to.be.true;
104 let expected = [ variable
117 expect(checkInstructions(insns, expected)).to.be.true;
127 let expected = [ variable
147 expect(checkInstructions(insns, expected)).to.be.true;
DpropertyAccess.test.ts45 let expected = [ variable
52 expect(checkInstructions(insns, expected)).to.be.true;
61 let expected = [ variable
70 expect(checkInstructions(insns, expected)).to.be.true;
85 let expected = [ variable
102 expect(checkInstructions(insns, expected)).to.be.true;
122 let expected = [ variable
139 expect(checkInstructions(insns, expected)).to.be.true;
155 let expected = [ variable
175 expect(checkInstructions(insns, expected)).to.be.true;
Dconditions.test.ts100 let expected = [ variable
110 expect(checkInstructions(insns, expected)).to.be.true
123 let expected = [ variable
132 expect(checkInstructions(insns, expected)).to.be.true;
141 let expected = [ variable
152 expect(checkInstructions(insns, expected)).to.be.true;
164 let expected = [ variable
174 expect(checkInstructions(insns, expected)).to.be.true;
181 let expected = [ variable
192 expect(checkInstructions(insns, expected)).to.be.true;
DelementAccess.test.ts43 let expected = [ variable
51 expect(checkInstructions(insns, expected)).to.be.true;
60 let expected = [ variable
70 expect(checkInstructions(insns, expected)).to.be.true;
80 let expected = [ variable
92 expect(checkInstructions(insns, expected)).to.be.true;
DtemplateExpression.test.ts90 let expected = [ variable
94 expect(checkInstructions(insns, expected)).to.be.true;
101 let expected = [ variable
108 expect(checkInstructions(insns, expected)).to.be.true;
122 let expected = [ variable
149 expect(checkInstructions(insns, expected)).to.be.true;
163 let expected = [ variable
190 expect(checkInstructions(insns, expected)).to.be.true;
205 let expected = [ variable
238 expect(checkInstructions(insns, expected)).to.be.true;
[all …]
Dparenthesized.test.ts33 let expected = [ variable
39 expect(checkInstructions(insns, expected)).to.be.true;
45 let expected = [ variable
51 expect(checkInstructions(insns, expected)).to.be.true;
Dregular.test.js33 let expected = [
37 expect(checkInstructions(insns, expected)).to.be.true;
44 let expected = [
48 expect(checkInstructions(insns, expected)).to.be.true;
/ark/ts2abc/ts2panda/tests/
Dhoist.test.ts43 let expected = [ variable
51 expect(checkInstructions(insns, expected)).to.be.true;
61 let expected = [ variable
72 expect(checkInstructions(insns, expected)).to.be.true;
81 let expected = [ variable
86 expect(checkInstructions(insns, expected)).to.be.true;
95 let expected = [ variable
101 expect(checkInstructions(insns, expected)).to.be.true;
109 let expected = [ variable
117 expect(checkInstructions(insns, expected)).to.be.true;
[all …]
/ark/runtime_core/libpandafile/tests/
Dbytecode_emitter_tests.cpp84 std::vector<uint8_t> expected; in TEST() local
86 expected << Opcode::RETURN_VOID; in TEST()
88 expected << Opcode::JMP_IMM8 << -num_ret; in TEST()
89 ASSERT_EQ(expected, out); in TEST()
107 std::vector<uint8_t> expected; in TEST() local
108 expected << Opcode::JMP_IMM8 << num_ret + 2; in TEST()
110 expected << Opcode::RETURN_VOID; in TEST()
112 ASSERT_EQ(expected, out); in TEST()
128 std::vector<uint8_t> expected; in TEST() local
130 expected << Opcode::RETURN_VOID; in TEST()
[all …]
/ark/ts2abc/ts2panda/tests/watch_expression/
DaddWatch.test.ts77 let expected = [ variable
90 expect(checkInstructions(insns, expected)).to.be.true;
100 let expected = [ variable
118 expect(checkInstructions(insns, expected)).to.be.true;
128 let expected = [ variable
139 expect(checkInstructions(insns, expected)).to.be.true;
149 let expected = [ variable
159 expect(checkInstructions(insns, expected)).to.be.true;
171 let expected = [ variable
190 expect(checkInstructions(insns, expected)).to.be.true;
[all …]
/ark/runtime_core/libpandabase/tests/
Dtype_converter_tests.cpp44 double expected = left_part_time + right_part_time * 1e-3; in TEST() local
46 ASSERT_EQ(TimeConverter(nanos), ValueUnit(expected, "us")); in TEST()
47 ASSERT_EQ(TimeConverter(nanos * 1e3), ValueUnit(expected, "ms")); in TEST()
48 ASSERT_EQ(TimeConverter(nanos * 1e6), ValueUnit(expected, "s")); in TEST()
49 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60), ValueUnit(expected, "m")); in TEST()
50 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60 * 60), ValueUnit(expected, "h")); in TEST()
51 ASSERT_EQ(TimeConverter(nanos * 1e6 * 60 * 60 * 24), ValueUnit(expected, "day")); in TEST()
78 double expected = left_part_bytes + right_part_bytes * 1e-3; in TEST() local
80 ASSERT_EQ(MemoryConverter(bytes), ValueUnit(expected, "KB")); in TEST()
81 ASSERT_EQ(MemoryConverter(bytes * (1UL << 10)), ValueUnit(expected, "MB")); in TEST()
[all …]
/ark/ts2abc/ts2panda/tests/statements/
DvariableDeclaration.test.ts52 let expected = [ variable
57 expect(checkInstructions(insns, expected)).to.be.true;
67 let expected = [ variable
72 expect(checkInstructions(insns, expected)).to.be.true;
82 let expected = [ variable
87 expect(checkInstructions(insns, expected)).to.be.true;
97 let expected = [ variable
104 expect(checkInstructions(insns, expected)).to.be.true;
114 let expected = [ variable
119 expect(checkInstructions(insns, expected)).to.be.true;
[all …]
Dwhile.test.ts46 let expected = [ variable
56 expect(checkInstructions(insns, expected)).to.be.true;
64 let expected = [ variable
79 expect(checkInstructions(insns, expected)).to.be.true;
91 let expected = [ variable
111 expect(checkInstructions(insns, expected)).to.be.true;
122 let expected = [ variable
141 expect(checkInstructions(insns, expected)).to.be.true;
154 let expected = [ variable
173 expect(checkInstructions(insns, expected)).to.be.true;
Dswitch.test.ts43 let expected = [ variable
58 expect(checkInstructions(insns, expected)).to.be.true;
75 let expected = [ variable
96 expect(checkInstructions(insns, expected)).to.be.true;
111 let expected = [ variable
133 expect(checkInstructions(insns, expected)).to.be.true;
146 let expected = [ variable
167 expect(checkInstructions(insns, expected)).to.be.true;
182 let expected = [ variable
204 expect(checkInstructions(insns, expected)).to.be.true;
DtryCatch.test.ts47 let expected = [ variable
62 expect(checkInstructions(insns, expected)).to.be.true;
76 let expected = [ variable
92 expect(checkInstructions(insns, expected)).to.be.true;
106 let expected = [ variable
126 expect(checkInstructions(insns, expected)).to.be.true;
145 let expected = [ variable
172 expect(checkInstructions(insns, expected)).to.be.true;
DfunctionDeclaration.test.ts47 let expected = [ variable
54 expect(checkInstructions(insns, expected)).to.be.true;
66 let expected = [ variable
73 expect(checkInstructions(insns, expected)).to.be.true;
83 let expected = [ variable
93 expect(checkInstructions(insns!, expected)).to.be.true;
105 let expected = [ variable
110 expect(checkInstructions(insns, expected)).to.be.true;

123