Updated test case for new syntax
This commit is contained in:
@@ -6,9 +6,13 @@ func TestData (test *testing.T) {
|
||||
checkTree ("../tests/parser/data",
|
||||
`:arf
|
||||
---
|
||||
data ro integer:Int 3202
|
||||
data ro integerArray16:{Int 16}
|
||||
data ro integerArrayInitialized:{Int 16}
|
||||
data ro aInteger:Int 3202
|
||||
data ro bMutInteger:Int:mut 3202
|
||||
data ro cIntegerPointer:{Int}
|
||||
data ro dMutIntegerPointer:{Int}:mut
|
||||
data ro eIntegerArray16:Int:16
|
||||
data ro fIntegerArrayVariable:{Int ..}
|
||||
data ro gIntegerArrayInitialized:Int:16
|
||||
3948
|
||||
293
|
||||
293049
|
||||
@@ -20,19 +24,15 @@ data ro integerArrayInitialized:{Int 16}
|
||||
0
|
||||
4785
|
||||
92
|
||||
data ro integerArrayVariable:{Int ..}
|
||||
data ro integerPointer:{Int}
|
||||
data ro mutInteger:Int:mut 3202
|
||||
data ro mutIntegerPointer:{Int}:mut
|
||||
data ro nestedObject:Obj
|
||||
.that
|
||||
.bird2 123.8439
|
||||
.bird3 9328.21348239
|
||||
data ro jObject:thing.Thing.thing.thing
|
||||
.this 324
|
||||
.that 2139
|
||||
data ro kNestedObject:Obj
|
||||
.this
|
||||
.bird0 324
|
||||
.bird1 "hello world"
|
||||
data ro object:thing.thing.thing.thing
|
||||
.that 2139
|
||||
.this 324
|
||||
.that
|
||||
.bird2 123.8439
|
||||
.bird3 9328.21348239
|
||||
`, test)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user