make ints compile time mutable
to change the label value and use the allocated stubs
This commit is contained in:
@ -43,6 +43,9 @@ module Parfait
|
||||
int = int.next_integer
|
||||
end
|
||||
end
|
||||
|
||||
def test_set
|
||||
@int.set_value(1)
|
||||
assert_equal 1 , @int.value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -33,6 +33,10 @@ module Parfait
|
||||
assert_equal 14, int.instance_type.method_names.get_length
|
||||
end
|
||||
|
||||
def test_get_integer_instance
|
||||
int = @space.get_integer
|
||||
assert_equal Integer , int.class
|
||||
end
|
||||
def test_classes_class
|
||||
classes.each do |name|
|
||||
assert_equal :Class , @space.classes[name].get_class.name
|
||||
|
Reference in New Issue
Block a user