mem_length to word/byte length

be more specific, and don’t include padding
This commit is contained in:
Torsten Ruger
2015-06-05 09:20:43 +03:00
parent 30d9aaf61b
commit 1c29fcfd43
13 changed files with 39 additions and 40 deletions

View File

@ -24,15 +24,15 @@ end
class TestPositioning < MiniTest::Test
def test_list1
list = Virtual.new_list([1])
assert_equal 32 , list.mem_length
assert_equal 32 , list.word_length
end
def test_list5
list = Virtual.new_list([1,2,3,4,5])
assert_equal 32 , list.mem_length
assert_equal 32 , list.word_length
end
def test_layout
layout = Parfait::Layout.new Object
layout.push 5
assert_equal 32 , layout.mem_length
assert_equal 32 , layout.word_length
end
end