Split test cases between blind types and objt types

pull/5/head
Sasha Koshka 7 months ago
parent 018499310c
commit da6d587a48

@ -115,25 +115,36 @@ func TestType (test *testing.T) {
---
type ro Basic:Int
type ro BasicInit:Int 6
type ro Complex:Obj
type ro IntArray:{Int ..}
type ro IntArrayInit:{Int 3}
3298
923
92
`, 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 that:BasicInit
ro this:Basic 23
type ro ComplexWithComplexInit:Obj
ro basic:Basic 87
ro complex0:Complex
ro basic:Int 87
ro complex0:Bird
.that 98
.this 2
ro complex1:Complex
ro complex1:Bird
.that 98902
.this 235
type ro IntArray:{Int ..}
type ro IntArrayInit:{Int 3}
3298
923
92
ro whatever:{Int 3}
230984
849
394580
type ro Init:Obj
ro that:String "hello world"
ro this:Int
`, test)
}

@ -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

@ -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