fix name expression
This commit is contained in:
@ -36,7 +36,6 @@ class TestBasic < MiniTest::Test
|
||||
|
||||
def test_self
|
||||
@string_input = 'self '
|
||||
@output = Virtual::Self
|
||||
check
|
||||
end
|
||||
|
||||
|
@ -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 )'
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user