Updated TestType test case for parser

This commit is contained in:
Sasha Koshka 2024-02-07 03:39:37 -05:00
parent 97605d8c2a
commit 02ec77b855
1 changed files with 9 additions and 9 deletions

View File

@ -5,23 +5,23 @@ import "testing"
func TestType (test *testing.T) {
testString (test,
// correct
`BasicInt: Int
Structure: (x:Int y:Int)
Interface: ([aMethod x:Int]:*U8 [otherMethod arg:5:Int]:*U8)
Array: 16:16:16:Int
StructArray: 31:24:340920:(x:Int y:Int)
String: *:U8`,
`- BasicInt: Int
- Structure: (. x:Int y:Int)
- Interface: (? [aMethod x:Int]:*U8 [otherMethod arg:5:Int]:*U8)
- Array: 16:16:16:Int
- StructArray: 31:24:340920:(. x:Int y:Int)
- String: *:U8`,
// input
`
BasicInt: Int
Structure: (
Structure: (.
x:Int
y:Int)
Interface: (
Interface: (?
[aMethod x:Int]:*U8
[otherMethod arg:5:Int]:*U8)
Array: 16:16:16:Int
StructArray: 31:24:340920:(
StructArray: 31:24:340920:(.
x:Int
y:Int)
String: *:U8