make ints compile time mutable

to change the label value and use the allocated stubs
This commit is contained in:
Torsten Ruger
2018-05-29 17:03:55 +03:00
parent b81d9565de
commit 7847420d49
5 changed files with 26 additions and 2 deletions

View File

@ -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