Remove Padded module
Parfait was depending on it, ie it created a dependency out of Parfait. But Parfiat needs to be self contained. Moved 2 methods into parfait object, and resolved single call from text_writer to third.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
require_relative "../helper"
|
||||
require_relative "helper"
|
||||
|
||||
module Risc
|
||||
module Parfait
|
||||
class TestPadding < MiniTest::Test
|
||||
|
||||
def setup
|
||||
@ -9,18 +9,18 @@ module Risc
|
||||
|
||||
def test_small
|
||||
[6,27,28].each do |p|
|
||||
assert_equal 32 , Padding.padded(p) , "Expecting 32 for #{p}"
|
||||
assert_equal 32 , Parfait::Object.padded(p) , "Expecting 32 for #{p}"
|
||||
end
|
||||
end
|
||||
def test_medium
|
||||
[29,33,40,57,60].each do |p|
|
||||
assert_equal 64 , Padding.padded(p) , "Expecting 64 for #{p}"
|
||||
assert_equal 64 , Parfait::Object.padded(p) , "Expecting 64 for #{p}"
|
||||
end
|
||||
end
|
||||
|
||||
def test_large
|
||||
[61,65,88].each do |p|
|
||||
assert_equal 96 , Padding.padded(p) , "Expecting 96 for #{p}"
|
||||
assert_equal 96 , Parfait::Object.padded(p) , "Expecting 96 for #{p}"
|
||||
end
|
||||
end
|
||||
def test_list1
|
Reference in New Issue
Block a user