2022-08-24 05:22:24 +00:00
|
|
|
package parser
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestData (test *testing.T) {
|
2022-09-05 18:52:37 +00:00
|
|
|
checkTree ("../tests/parser/data", false,
|
2022-08-24 05:22:24 +00:00
|
|
|
`:arf
|
|
|
|
---
|
2022-09-27 22:46:17 +00:00
|
|
|
data ro aInteger:Int
|
|
|
|
3202
|
|
|
|
data ro bMutInteger:Int:mut
|
|
|
|
3202
|
2022-09-05 15:12:55 +00:00
|
|
|
data ro cIntegerPointer:{Int}
|
|
|
|
data ro dMutIntegerPointer:{Int}:mut
|
|
|
|
data ro eIntegerArray16:Int:16
|
|
|
|
data ro fIntegerArrayVariable:{Int ..}
|
2022-09-27 22:46:17 +00:00
|
|
|
data ro gIntegerArrayInitialized:Int:16
|
|
|
|
(
|
2022-09-16 02:43:02 +00:00
|
|
|
3948
|
|
|
|
293
|
|
|
|
293049
|
|
|
|
948
|
|
|
|
912
|
|
|
|
340
|
|
|
|
0
|
|
|
|
2304
|
|
|
|
0
|
|
|
|
4785
|
|
|
|
92
|
|
|
|
)
|
2022-09-27 22:46:17 +00:00
|
|
|
data rw hIntegerPointerInit:{Int}
|
|
|
|
[& integer]
|
|
|
|
data rw iMutIntegerPointerInit:{Int}:mut
|
|
|
|
[& integer]
|
|
|
|
data ro jObject:Obj
|
2022-09-17 02:35:55 +00:00
|
|
|
(
|
2022-09-27 22:46:17 +00:00
|
|
|
324
|
|
|
|
438
|
2022-09-16 02:43:02 +00:00
|
|
|
)
|
2022-09-05 15:23:16 +00:00
|
|
|
data ro lMutIntegerArray16:Int:16:mut
|
2022-09-05 18:09:47 +00:00
|
|
|
data ro mExternalData:Int:8
|
|
|
|
external
|
2022-09-27 22:46:17 +00:00
|
|
|
data ro nIntegerArrayInitialized:Int:16:mut
|
|
|
|
(
|
2022-09-16 02:43:02 +00:00
|
|
|
3948
|
|
|
|
293
|
|
|
|
293049
|
|
|
|
948
|
|
|
|
912
|
|
|
|
340
|
|
|
|
0
|
|
|
|
2304
|
|
|
|
0
|
|
|
|
4785
|
|
|
|
92
|
2022-09-27 22:46:17 +00:00
|
|
|
)
|
2022-08-24 05:22:24 +00:00
|
|
|
`, test)
|
|
|
|
}
|