File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1313
1414 :let features Array(ReflectionFeatureOfType(A)): []
1515
16+ :is IntoString
17+ :fun into_string_space USize: @string.size
18+ :fun into_string(out String'ref) None: @string.into_string(out)
19+
1620:class val ReflectionFeatureOfType(A)
1721 :let name String: ""
1822 :let tags Array(String): []
Original file line number Diff line number Diff line change 22 :fun run(test MicroTest)
33 test["reflection_of_type.string String"].pass =
44 (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)"
911
1012 test["reflection_of_runtime_type_name U64"].pass =
1113 (reflection_of_runtime_type_name U64[0]) == "U64"
You can’t perform that action at this time.
0 commit comments