Add parser test for union type

This commit is contained in:
Sasha Koshka 2024-03-01 12:34:29 -05:00
parent 489f20972b
commit acf254a1f3

View File

@ -8,6 +8,7 @@ testString (test,
`- BasicInt: Int
- Structure: (. x:Int y:Int)
- Interface: (~ [aMethod x:Int]:*U8 [otherMethod arg:5:Int]:*U8)
- Union: (| Int F64 *:U8 (. x:Int y:Int))
- Array: 16:16:16:Int
- StructArray: 31:24:340920:(. x:Int y:Int)
- String: *:U8`,
@ -20,6 +21,9 @@ Structure: (.
Interface: (~
[aMethod x:Int]:*U8
[otherMethod arg:5:Int]:*U8)
- Union: (|
Int F64 *:U8
(. x:Int y:Int))
Array: 16:16:16:Int
StructArray: 31:24:340920:(.
x:Int