From c847d2187dfa12436c977ed5b24573cc70f71ca7 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 20 Aug 2022 13:25:43 -0400 Subject: [PATCH] Fixed the object section test --- parser/parser_test.go | 4 ++-- tests/parser/objt/main.arf | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/parser/parser_test.go b/parser/parser_test.go index 17dde9f..9fadd07 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -123,7 +123,7 @@ type ro IntArrayInit:{Int 3} `, test) } -func TestType (test *testing.T) { +func TestObjt (test *testing.T) { checkTree ("../tests/parser/objt", `:arf --- @@ -144,7 +144,7 @@ type ro ComplexInit:Obj 394580 type ro Init:Obj ro that:String "hello world" - ro this:Int + ro this:Int `, test) } diff --git a/tests/parser/objt/main.arf b/tests/parser/objt/main.arf index 4940494..a151314 100644 --- a/tests/parser/objt/main.arf +++ b/tests/parser/objt/main.arf @@ -1,14 +1,14 @@ :arf --- -type ro Basic:Obj +objt ro Basic:Obj ro that:Basic ro this:Basic -type ro Init:Obj +objt ro Init:Obj ro that:String "hello world" ro this:Int 23 -type ro ComplexInit:Obj +objt ro ComplexInit:Obj ro whatever:{Int 3} 230984 849 394580