Home
last modified time | relevance | path

Searched full:must (Results 1 – 25 of 1484) sorted by relevance

12345678910>>...60

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/strings/
Dstring_api.sts35 assert chars.length == 5: "Chars length must be 5";
36 assert chars[0] == c'h': "First letter must be `h`";
37 assert chars[1] == c'e': "Second letter must be `e`";
38 assert chars[2] == c'l': "Third letter must be `l`";
39 assert chars[3] == c'l': "Fourth letter must be `l`";
40 assert chars[4] == c'o': "Fifth letter must be `o`";
44 assert byteChars[0] == 98: "First byte must be 98";
45 assert byteChars[1] == 121: "Second byte must be 121";
46 assert byteChars[2] == 116: "Third byte must be 116";
47 assert byteChars[3] == 101: "Fourth byte must be 101";
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dsendable_explicit_field_type.ts.json134 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
141 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
148 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
155 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
169 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
176 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
183 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
190 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
197 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
204 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
[all …]
Dobject_literals_autofixes.ts.json29 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
36 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
50 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
57 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
71 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
78 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
85 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
92 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
99 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
Dobject_literals_3.ts.json22 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
29 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
43 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
50 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
57 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
71 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
78 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
85 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
92 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
Dsendable_generic_types.ts.json21 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
28 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
35 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
42 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
70 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
77 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
84 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
91 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
98 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
105 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
[all …]
Dobject_literals_autofixes.ts.autofix.json41 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
60 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
86 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
105 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
112 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
131 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
150 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
169 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
176 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
195 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
Dsendable_class_interface_property.ts.json29 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
36 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
43 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
50 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
57 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
64 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
71 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
78 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
85 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
92 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s…
[all …]
Ddestructuring_for_loop.ts.json29 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
36 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
43 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
50 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
85 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
92 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
99 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
106 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
113 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
Ddestructuring_declarations.ts.json29 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
43 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
57 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
78 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
85 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
92 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
176 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
183 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
197 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
[all …]
Dobject_literals_3.ts.autofix.json34 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
53 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
79 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
98 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
117 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
136 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
143 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
150 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
157 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
164 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
Dobject_literals_2.ts.autofix.json34 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
41 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
48 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
55 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
62 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
69 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
76 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
83 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
90 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
97 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
Dobject_literals.ts.autofix.json60 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
93 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
100 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
107 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
114 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
121 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
128 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
135 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
161 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
208 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dstring_split_test.sts29 let str = "It can't be - there must be a gap in between!";
31 assert arr.length == 11: "Length must be 11";
32 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`";
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/gc/
Dpin_object.sts18 assert obj != null : "Allocated object must not be null";
20 …assert GC.getObjectSpaceType(obj) == GC.YOUNG_SPACE : "The object before GC must be placed in youn…
26 …assert GC.getObjectSpaceType(obj) == GC.TENURED_SPACE : "The pinned object after GC must be placed…
29 assert addr_before_gc == addr_after_gc : "Pinned object must has a fixed address.\n" +
36 assert obj != null : "Allocated object must not be null";
37 …assert GC.getObjectSpaceType(obj) == GC.TENURED_SPACE : "The pinned array after GC must be placed …
45 assert addr_before_gc == addr_after_gc : "Pinned array must has a fixed address.\n" +
58 assert detected == true: "GC.pinObject must throw NullPointerError for null object";
69 assert detected == true: "GC.unpinObject must throw NullPointerError for null object";
80 assert detected == 1: "Boolean array pinning must throw NegativeArraySizeError";
[all …]
Dweak_ref_test.sts19 assert obj != null : "New object must be correctly allocated";
26 assert obj != null : "New string object must be correctly allocated";
44 assert wr.deref() === undefined : "Object referent must be collected after Full GC";
45 assert wrs.deref() === undefined : "String referent must be collected after Full GC";
46 assert reachable_obj != null : "Local object must not be collected"
48 "must return non-undefined value";
Dspace_type_test.sts17 …assert GC.getObjectSpaceType("spaceTypeTest") == GC.NON_MOVABLE_SPACE : "Must be non movable space…
22 assert GC.getObjectSpaceType(obj) == GC.YOUNG_SPACE : "Must be young space";
27 assert GC.getObjectSpaceType(obj) == GC.TENURED_SPACE : "Must be tenured space";
33 assert GC.getObjectSpaceType(h_obj) == GC.HUMONGOUS_SPACE: "Must be humongous space";
44 assert detected == true: "getObjectSpaceType must throw NullPointerError for null argument";
57 assert false: "Space allocation test must not throw exceptions";
/arkcompiler/ets_frontend/ets2panda/linter/test_rules/
Drule38.ts.json22 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
29 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
36 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
43 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
50 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
57 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
64 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
71 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
78 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
85 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
Drule38.ts.autofix.json34 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
41 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
48 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
55 …"rule": "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr…
62 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
69 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
76 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
83 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
90 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
97 …"rule": "Object literal must correspond to some explicitly declared class or interface (arkts-no-u…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DReflectGetBadCases.sts59 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
65 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
71 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
77 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
83 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
89 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
95 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
101 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
107 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
115 … result += e.toString().contains("`target` argument of Reflect.get must be indexed", 0) ? 0 : 1
[all …]
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Dunion_types_3.sts18 assert (x0 as int) * 2 == 4: "Error! Must be 4";
20 assert (x0 as int) * 3 == -6: "Error! Must be -6";
22 assert (x0 as boolean) == true: "Error! Must be true";
24 assert ((x0 as String) + "STR2").equals("STR1STR2"): "Error! Must be `STR1STR2`";
27 assert (x1 as String).equals("AAA"): "Error! Must be `AAA`";
30 assert (x2 as boolean) == true: "Error! Must be `true`";
32 // assert (x3 as double) == 3.14: "Error! Must be `3.14`"; // #15576
33 assert (x3 as Double) == 3.14: "Error! Must be `3.14`";
Dunion_types_1.sts37 assert xx.num_to_return() == 777: "Error! The num field of class `C` must be 777";
42 assert x.num == 777: "Error! The num field of union must be 777";
44 assert a == 780: "Error! Variable 'a' must be 780";
46 assert x.num == 1000: "Error! The num field of union must be 1000";
53 assert x.num == 1000: "Error! The num field of union must be 1000";
56 assert xx.num_to_return() == 1000: "Error! The num field of class `C` must be 1000";
62 assert x.num == 41: "Error! The num field of union must be 41";
64 assert x.num == 42: "Error! The num field of union must be 42";
Dunion_types_5.sts28 assert x.num == 42: "Error! num field must be 42";
30 assert x.num == 43: "Error! num field must be 43";
32 assert false: "Error! x must be instanceof B|C";
38 assert x.union0.num == 42: "Error! x.union0.num field must be 42";
40 assert x.union0.num == 43: "Error! x.union0.num field must be 43";
42 assert false: "Error! x.union0 must be instanceof B|C";
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DnotNull.sts41 assert typeOf(b) == 1: "b must be type Int";
42 assert b == 5 : "b must be 5";
59 assert typeOf(b) == 1: "b must be type Int";
76 assert d instanceof Double : "d must be type Double"
77 assert d == 3.1415 : "d must be 3.1415"
81 assert "3.1415".equals(sd) : "s must be '3.1415'"
85 assert f instanceof Float : "f must be type Float"
86 assert f == Float.DELTA : "f must be Float.DELTA"
103 assert false : "this must not be executed";
108 assert npe_caught : "NPE must be caught";
[all …]
/arkcompiler/runtime_core/docs/
Dfile_format.md68 Any tool which supports format version `N` must support format version `N - 1` too.
103 …ing of the data. Depending on the tag there may be optional data. Runtime must be able to determin…
160 | `ACC_FINAL` | `0x0010` | Declared final; must not be overridden. |
177 | `ACC_ABSTRACT` | `0x0400` | Declared abstract; must not be instantiated. |
208 | `magic` | `uint8_t[8]` | Magic string. Must be 'P' 'A' 'N' 'D' 'A' '\\0' '\\0' …
212 | `foreign_off` | `uint32_t` | Offset to the foreign region. The region must contain …
215 | `class_idx_off` | `uint32_t` | Offset to the class index structure. The offset must p…
217 …2_t` | Offset to the line number program index structure. The offset must point to a structur…
219 … `uint32_t` | Offset to the literalarray index structure. The offset must point to a structur…
221 | `index_section_off` | `uint32_t` | Offset to the index section. The offset must point to …
[all …]
/arkcompiler/runtime_core/static_core/docs/
Dfile_format.md68 Any tool which supports format version `N` must support format version `N - 1` too.
103 …ing of the data. Depending on the tag there may be optional data. Runtime must be able to determin…
161 | `ACC_FINAL` | `0x0010` | Declared final; must not be overridden. |
178 | `ACC_ABSTRACT` | `0x0400` | Declared abstract; must not be instantiated. |
209 | `magic` | `uint8_t[8]` | Magic string. Must be 'P' 'A' 'N' 'D' 'A' '\\0' '\\0' …
213 | `foreign_off` | `uint32_t` | Offset to the foreign region. The region must contain …
216 | `class_idx_off` | `uint32_t` | Offset to the class index structure. The offset must p…
218 …2_t` | Offset to the line number program index structure. The offset must point to a structur…
220 … `uint32_t` | Offset to the literalarray index structure. The offset must point to a structur…
222 | `index_section_off` | `uint32_t` | Offset to the index section. The offset must point to …
[all …]

12345678910>>...60