diff --git a/analyzer/type-section_test.go b/analyzer/type-section_test.go index 794058b..9bfc84f 100644 --- a/analyzer/type-section_test.go +++ b/analyzer/type-section_test.go @@ -4,8 +4,13 @@ import "testing" func TestTypeSection (test *testing.T) { checkTree ("../tests/analyzer/typeSection", false, -`typeSection ro ../tests/analyzer/typeSection/something.Thing +`typeSection ro ../tests/analyzer/typeSection/required.aBasic type 1 basic Int +typeSection ro ../tests/analyzer/typeSection/required.bBird + type 1 basic Obj + member rw wing + type 1 basic Int + arg uint 2 typeSection ro ../tests/analyzer/typeSection.aBasicInt type 1 basic Int arg uint 5 @@ -14,10 +19,23 @@ typeSection ro ../tests/analyzer/typeSection.bOnBasicInt typeSection ro ../tests/analyzer/typeSection.cBasicObject type 1 basic Obj member ro that - type 1 basic Int + type 1 basic UInt member ro this type 1 basic Int -typeSection ro ../tests/analyzer/typeSection.dInheritedFromOther - type 1 basic Thing +typeSection ro ../tests/analyzer/typeSection.dInheritFromOther + type 1 basic aBasic +typeSection ro ../tests/analyzer/typeSection.eInheritObject + type 1 basic cBasicObject + member ro that + type 1 basic UInt + arg uint 5 +typeSection ro ../tests/analyzer/typeSection.fInheritObjectFromOther + type 1 basic bBird + member ro wing + type 1 basic Int + arg uint 2 + member ro beak + type 1 basic Int + arg uint 238 `, test) } diff --git a/tests/analyzer/typeSection/main.arf b/tests/analyzer/typeSection/main.arf index 8255521..286db2a 100644 --- a/tests/analyzer/typeSection/main.arf +++ b/tests/analyzer/typeSection/main.arf @@ -1,5 +1,5 @@ :arf -require './something' +require './required' --- type ro aBasicInt:Int 5 @@ -10,11 +10,11 @@ type ro cBasicObject:Obj ro that:UInt ro this:Int -type ro dInheritFromOther:something.aBasic +type ro dInheritFromOther:required.aBasic type ro eInheritObject:cBasicObject ro that 5 -type ro dInheritObjectFromOther:something.bBird +type ro fInheritObjectFromOther:required.bBird ro wing 2 ro beak:Int 238 diff --git a/tests/analyzer/typeSection/something/main.arf b/tests/analyzer/typeSection/required/main.arf similarity index 100% rename from tests/analyzer/typeSection/something/main.arf rename to tests/analyzer/typeSection/required/main.arf