Added data test

This commit is contained in:
Sasha Koshka
2022-08-15 14:23:53 -04:00
parent 00bcfaab0b
commit 3a3c588023
2 changed files with 38 additions and 1 deletions

View File

@@ -42,7 +42,6 @@ func quickIdentifier (trail ...string) (identifier Identifier) {
}
func TestMeta (test *testing.T) {
checkTree ("../tests/parser/meta",
`:arf
author "Sasha Koshka"
@@ -52,3 +51,37 @@ require "otherModule"
---
`, test)
}
func TestData (test *testing.T) {
checkTree ("../tests/parser/data",
`:arf
---
data wr integer:Int 3202
data wr integerPointer:{Int}
data wr integerArray16:{Int 16}
data wr integerArrayVariable:{Int ...}
data wr integerArrayInitialized:{Int 16}
3948
293
293049
948
912
340
0
2304
0
4785
92
data wr object:Obj
, this 324
, that 2139
data wr nestedObject:Obj
, this
, bird0 324
, bird1 "hello world"
, that
, bird2 123.8439
, bird3 9328.21348239
`, test)
}