fix padding

used to be that type and layout were hidden
now type is gone and layout is an explicit instance, so 0 overhead
This commit is contained in:
Torsten Ruger
2015-11-04 10:34:03 +02:00
parent 5bddbfbb62
commit c87682b77f
2 changed files with 5 additions and 7 deletions

View File

@ -10,17 +10,17 @@ class TestPadding < MiniTest::Test
@pad = Padded.new
end
def test_small
[6,20,27,28].each do |p|
[6,27,28,32].each do |p|
assert_equal 32 , @pad.padded(p) , "Expecting 32 for #{p}"
end
end
def test_medium
[29,40,57,60].each do |p|
[33,40,57,60,64].each do |p|
assert_equal 64 , @pad.padded(p) , "Expecting 64 for #{p}"
end
end
def test_large
[61,88].each do |p|
[65,88].each do |p|
assert_equal 96 , @pad.padded(p) , "Expecting 96 for #{p}"
end
end