This repository has been archived on 2024-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
arf/parser/data_test.go

71 lines
957 B
Go
Raw Normal View History

package parser
import "testing"
func TestData (test *testing.T) {
2022-09-05 12:52:37 -06:00
checkTree ("../tests/parser/data", false,
`:arf
---
data ro aInteger:Int:<3202>
data ro bMutInteger:Int:mut:<3202>
2022-09-05 09:12:55 -06:00
data ro cIntegerPointer:{Int}
data ro dMutIntegerPointer:{Int}:mut
data ro eIntegerArray16:Int:16
data ro fIntegerArrayVariable:{Int ..}
2022-09-15 20:43:02 -06:00
data ro gIntegerArrayInitialized:Int:16:
<
3948
293
293049
948
912
340
0
2304
0
4785
92
>
data rw hIntegerPointerInit:{Int}:<[& integer]>
data rw iMutIntegerPointerInit:{Int}:mut:<[& integer]>
2022-09-15 20:43:02 -06:00
data ro jObject:Obj:
(
.that:<324>
2022-09-16 20:35:55 -06:00
.this:<324>
2022-09-15 20:43:02 -06:00
)
data ro kNestedObject:Obj:
(
.ro newMember:Int:<9023>
2022-09-16 20:35:55 -06:00
):
(
2022-09-15 20:43:02 -06:00
.that:
(
.bird2:<123.8439>
2022-09-15 20:43:02 -06:00
.bird3:<9328.21348239>
)
2022-09-16 20:35:55 -06:00
.this:
(
.bird0:<324>
.bird1:<"hello world">
)
2022-09-15 20:43:02 -06:00
)
data ro lMutIntegerArray16:Int:16:mut
data ro mExternalData:Int:8
external
2022-09-15 20:43:02 -06:00
data ro nIntegerArrayInitialized:Int:16:mut:
<
3948
293
293049
948
912
340
0
2304
0
4785
92
>
`, test)
}