replace add_new_int in most builtins

in integer and word mainly, replaced with allocate_int
(tests pending as syscalls are undone)
This commit is contained in:
Torsten Ruger
2018-11-21 20:29:22 +02:00
parent bbb7dbef75
commit a8d1f070f1
6 changed files with 74 additions and 60 deletions

View File

@ -7,7 +7,12 @@ module Parfait
super
@int = Integer.new(10)
end
def test_index
assert_equal 2 , Integer.integer_index
end
def test_next_index
assert_equal 1 , Integer.next_index
end
def test_class
assert_equal :Integer, @int.get_type.object_class.name
end