Updated TestType test case for parser
This commit is contained in:
parent
97605d8c2a
commit
02ec77b855
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue