mostly renames from the type change

also making setters as explicit set_xx methods
This commit is contained in:
Torsten Ruger
2016-12-29 18:45:32 +02:00
parent f4b3c645e5
commit b5f04ec718
11 changed files with 42 additions and 30 deletions

View File

@ -10,18 +10,15 @@ class TestPositioning < MiniTest::Test
end
def test_list1
list = Parfait.new_list([1])
list.set_type( Parfait::Type.new Object)
assert_equal 32 , list.padded_length
end
def test_list5
list = Parfait.new_list([1,2,3,4,5])
list.set_type( Parfait::Type.new Object)
assert_equal 32 , list.padded_length
end
def test_type
type = Parfait::Type.new Object
type.set_type( Parfait::Type.new Object)
type.push 5
type = Parfait::Type.new Parfait::Space.object_space.get_class_by_name(:Object)
type.set_type( type )
assert_equal 32 , type.padded_length
end
def test_word