Split test cases between blind types and objt types

This commit is contained in:
Sasha Koshka 2022-08-20 02:42:52 -04:00
parent 018499310c
commit da6d587a48
3 changed files with 46 additions and 31 deletions

View File

@ -115,20 +115,6 @@ func TestType (test *testing.T) {
---
type ro Basic:Int
type ro BasicInit:Int 6
type ro Complex:Obj
ro that:Basic
ro this:Basic
type ro ComplexInit:Obj
ro that:BasicInit
ro this:Basic 23
type ro ComplexWithComplexInit:Obj
ro basic:Basic 87
ro complex0:Complex
.that 98
.this 2
ro complex1:Complex
.that 98902
.this 235
type ro IntArray:{Int ..}
type ro IntArrayInit:{Int 3}
3298
@ -137,3 +123,28 @@ type ro IntArrayInit:{Int 3}
`, test)
}
func TestType (test *testing.T) {
checkTree ("../tests/parser/objt",
`:arf
---
type ro Basic:Obj
ro that:Basic
ro this:Basic
type ro ComplexInit:Obj
ro basic:Int 87
ro complex0:Bird
.that 98
.this 2
ro complex1:Bird
.that 98902
.this 235
ro whatever:{Int 3}
230984
849
394580
type ro Init:Obj
ro that:String "hello world"
ro this:Int
`, test)
}

View File

@ -0,0 +1,21 @@
:arf
---
type ro Basic:Obj
ro that:Basic
ro this:Basic
type ro Init:Obj
ro that:String "hello world"
ro this:Int 23
type ro ComplexInit:Obj
ro whatever:{Int 3}
230984
849 394580
ro complex0:Bird
.that 98
.this 2
ro complex1:Bird
.that 98902
.this 235
ro basic:Int 87

View File

@ -8,20 +8,3 @@ type ro IntArray:{Int ..}
type ro IntArrayInit:{Int 3}
3298 923 92
type ro Complex:Obj
ro that:Basic
ro this:Basic
type ro ComplexInit:Obj
ro that:BasicInit
ro this:Basic 23
type ro ComplexWithComplexInit:Obj
ro complex0:Complex
.that 98
.this 2
ro complex1:Complex
.that 98902
.this 235
ro basic:Basic 87