File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
:let features Array(ReflectionFeatureOfType(A)): []
15
15
16
+ :is IntoString
17
+ :fun into_string_space USize: @string.size
18
+ :fun into_string(out String'ref) None: @string.into_string(out)
19
+
16
20
:class val ReflectionFeatureOfType(A)
17
21
:let name String: ""
18
22
:let tags Array(String): []
Original file line number Diff line number Diff line change 2
2
:fun run(test MicroTest)
3
3
test["reflection_of_type.string String"].pass =
4
4
(reflection_of_type "example").string == "String"
5
- test["reflection_of_type.string String'ref"].pass =
6
- (reflection_of_type String.new).string == "String'ref"
7
- test["reflection_of_type.string Array(U8)"].pass =
8
- (reflection_of_type Array(U8).new).string == "Array(U8)"
5
+ test["reflection_of_type string String"].pass =
6
+ "\(reflection_of_type "example")" == "String"
7
+ test["reflection_of_type string String'ref"].pass =
8
+ "\(reflection_of_type String.new)" == "String'ref"
9
+ test["reflection_of_type string Array(U8)"].pass =
10
+ "\(reflection_of_type Array(U8).new)" == "Array(U8)"
9
11
10
12
test["reflection_of_runtime_type_name U64"].pass =
11
13
(reflection_of_runtime_type_name U64[0]) == "U64"
You can’t perform that action at this time.
0 commit comments