rename locals to frame

This commit is contained in:
Torsten Ruger
2018-03-14 20:24:47 +05:30
parent 7db329fa6b
commit 559a797100
9 changed files with 25 additions and 25 deletions

View File

@ -70,7 +70,7 @@ class TestMethod < MiniTest::Test
@method.add_local(:foo2 , :Object)
assert_equal 3 , @method.frame_length
assert_equal :foo2 , @method.locals_name(3)
assert_equal :Object , @method.locals_type(3)
assert_equal :Object , @method.frame_type(3)
end
def test_get_locals_name1
@ -78,18 +78,18 @@ class TestMethod < MiniTest::Test
assert_equal 1 , index
assert_equal :local_bar , @method.locals_name(index)
end
def test_get_locals_type1
def test_get_frame_type1
index = @method.has_local(:local_bar)
assert_equal :Integer , @method.locals_type(index)
assert_equal :Integer , @method.frame_type(index)
end
def test_get_locals_name2
index = @method.has_local(:local_foo)
assert_equal 2 , index
assert_equal :local_foo , @method.locals_name(index)
end
def test_get_locals_type2
def test_get_frame_type2
index = @method.has_local(:local_bar)
assert_equal :Integer , @method.locals_type(index)
assert_equal :Integer , @method.frame_type(index)
end
end