bringing the locals into the ruby method

This commit is contained in:
Torsten Ruger
2016-12-21 11:30:35 +02:00
parent 9ec9ccb9b6
commit b242f9e223
3 changed files with 22 additions and 6 deletions

View File

@ -23,10 +23,15 @@ module Melon
assert method.args_type.variable_index(:arg1) , method.args_type.inspect
end
def test_ivar_operator_assign
def test_three_args
method = parse_collect("def meth3(yksi,kaksi,kolme); 1;end").first
assert method.args_type.variable_index(:kolme) , method.args_type.inspect
end
def test_one_local
method = parse_collect("def meth2(arg1); foo = 2 ;end").first
assert method.locals_type.variable_index(:foo) , method.locals_type.inspect
end
end
end