rename word_length to padded length
with word_length i was never sure if it was the padded version or not
This commit is contained in:
@ -7,21 +7,21 @@ class TestPositioning < MiniTest::Test
|
||||
def test_list1
|
||||
list = Register.new_list([1])
|
||||
list.set_layout( Parfait::Layout.new Object)
|
||||
assert_equal 32 , list.word_length
|
||||
assert_equal 32 , list.padded_length
|
||||
end
|
||||
def test_list5
|
||||
list = Register.new_list([1,2,3,4,5])
|
||||
list.set_layout( Parfait::Layout.new Object)
|
||||
assert_equal 32 , list.word_length
|
||||
assert_equal 32 , list.padded_length
|
||||
end
|
||||
def test_layout
|
||||
layout = Parfait::Layout.new Object
|
||||
layout.set_layout( Parfait::Layout.new Object)
|
||||
layout.push 5
|
||||
assert_equal 32 , layout.word_length
|
||||
assert_equal 32 , layout.padded_length
|
||||
end
|
||||
def test_word
|
||||
word = Parfait::Word.new(12)
|
||||
assert_equal 32 , word.word_length
|
||||
assert_equal 32 , word.padded_length
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user