fix name expression

This commit is contained in:
Torsten Ruger
2015-10-14 21:34:18 +03:00
parent 1141ed9c99
commit f105b1eb3c
5 changed files with 26 additions and 9 deletions

View File

@ -36,7 +36,6 @@ class TestBasic < MiniTest::Test
def test_self
@string_input = 'self '
@output = Virtual::Self
check
end

View File

@ -36,7 +36,7 @@ module Virtual
check
end
def ttest_call_main_op
def test_call_main_op
Virtual.machine.space.get_main.ensure_local(:bar , :Integer)
@root = :call_site
@string_input = 'main( bar )'

View File

@ -23,7 +23,23 @@ HERE
self.bro
HERE
@output = Register::RegisterValue
check
check
end
def test_local
Virtual.machine.space.get_main.ensure_local(:bar , :Integer)
@root = :name
@string_input = 'bar '
@output = Register::RegisterValue
check
end
def test_args
Virtual.machine.space.get_main.arguments.push Parfait::Variable.new(:Integer , :bar)
@root = :name
@string_input = 'bar '
@output = Register::RegisterValue
check
end
end