rename locals to frame
This commit is contained in:
@ -31,7 +31,7 @@ module Rubyx
|
||||
|
||||
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
|
||||
assert method.frame_type.variable_index(:foo) , method.frame_type.inspect
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -44,7 +44,7 @@ module Rubyx
|
||||
|
||||
def test_method_has_no_locals
|
||||
method = create_method
|
||||
assert_equal 1 , method.locals_type.instance_length
|
||||
assert_equal 1 , method.frame_type.instance_length
|
||||
end
|
||||
|
||||
def test_method_has_args
|
||||
@ -54,7 +54,7 @@ module Rubyx
|
||||
|
||||
def test_method_has_locals
|
||||
method = create_method_local
|
||||
assert_equal 2 , method.locals_type.instance_length
|
||||
assert_equal 2 , method.frame_type.instance_length
|
||||
end
|
||||
|
||||
def test_method_create_tmp
|
||||
@ -65,7 +65,7 @@ module Rubyx
|
||||
def test_method_add_tmp
|
||||
method = create_method_local
|
||||
method.create_tmp
|
||||
assert_equal 3 , method.locals_type.instance_length
|
||||
assert_equal 3 , method.frame_type.instance_length
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user