better test for attr

still #25
This commit is contained in:
Torsten Ruger
2019-03-07 10:47:48 +02:00
parent 04720d4950
commit 5ed6a07083
8 changed files with 118 additions and 52 deletions

View File

@ -20,4 +20,17 @@ module Ruby
$stdout = orig_stdout
end
end
module AttributeTests
include RubyTests
def setup
super
@vool = compile( "class Tryout < Base; #{attr_def};end" ).to_vool
end
def getter
@vool.body.statements.first
end
def setter
@vool.body.statements.last
end
end
end