still doing attr_reader, but closing #25

cattr still missing, but only one occurence. Later.
This commit is contained in:
Torsten Ruger
2019-03-07 11:00:18 +02:00
parent 5ed6a07083
commit 1391667f6c
4 changed files with 30 additions and 33 deletions

View File

@ -7,24 +7,9 @@ module Ruby
def attr_def
"attr :page , :size"
end
def test_class
assert_equal Vool::ClassStatement , @vool.class
end
def test_body
assert_equal Vool::Statements , @vool.body.class
end
def test_method_len
assert_equal 4 , @vool.body.length , "2 setters, 2 getters"
end
def test_getter
assert_equal Vool::MethodStatement , getter.class
end
def test_getter_return
assert_equal Vool::ReturnStatement , getter.body.class
end
def test_getter_name
assert_equal :page , getter.name
end
def test_setter
assert_equal Vool::MethodStatement , setter.class
end