Updated other test cases and examples to match

This commit is contained in:
2022-09-05 11:35:32 -04:00
parent 5127b80630
commit 51def46d91
11 changed files with 31 additions and 37 deletions

View File

@@ -6,7 +6,7 @@ func TestEnum (test *testing.T) {
checkTree ("../tests/parser/enum",
`:arf
---
enum ro AffrontToGod:{Int 4}
enum ro AffrontToGod:Int:4
bird0
28394
9328

View File

@@ -25,7 +25,7 @@ func ro cBasicPhrases
[fn [gn 329 983 57] 123]
func ro dArgumentTypes
---
[bird tree butterfly.wing "hello world" grass:{Int:mut 8}]
[bird tree butterfly.wing "hello world" grass:Int:8:mut]
func ro eMath
> x:Int
> y:Int
@@ -103,7 +103,7 @@ func ro hSetPhrase
---
[= x:Int 3]
[= y:{Int} [loc x]]
[= z:{Int 8}]
[= z:Int:8]
398
9
2309

View File

@@ -13,7 +13,7 @@ objt ro BitFields:Obj
ro that:Int & 1
ro this:Int & 24 298
objt ro ComplexInit:Obj
ro whatever:{Int 3}
ro whatever:Int:3
230984
849
394580

View File

@@ -9,7 +9,7 @@ func TestType (test *testing.T) {
type ro Basic:Int
type ro BasicInit:Int 6
type ro IntArray:{Int ..}
type ro IntArrayInit:{Int 3}
type ro IntArrayInit:Int:3
3298
923
92