move parfait adapter into parfait ruby
in the future parfait will be coded in some and translated back into ruby to “adapt” until then, all ruby code is the adapter
This commit is contained in:
@ -9,14 +9,14 @@ class TestCompat < MiniTest::Test
|
||||
|
||||
def test_list_create_from_array
|
||||
array = [1,2,3]
|
||||
list = Register.new_list(array)
|
||||
list = Parfait.new_list(array)
|
||||
assert_equal array , list.to_a
|
||||
end
|
||||
|
||||
def test_word_create_from_string
|
||||
string = "something"
|
||||
word = Register.new_word(string)
|
||||
assert_equal word , Register.new_word(string)
|
||||
word = Parfait.new_word(string)
|
||||
assert_equal word , Parfait.new_word(string)
|
||||
assert_equal string , word.to_string
|
||||
end
|
||||
end
|
||||
|
@ -5,12 +5,12 @@ class TestPositioning < MiniTest::Test
|
||||
Register.machine.boot unless Register.machine.booted
|
||||
end
|
||||
def test_list1
|
||||
list = Register.new_list([1])
|
||||
list = Parfait.new_list([1])
|
||||
list.set_layout( Parfait::Layout.new Object)
|
||||
assert_equal 32 , list.padded_length
|
||||
end
|
||||
def test_list5
|
||||
list = Register.new_list([1,2,3,4,5])
|
||||
list = Parfait.new_list([1,2,3,4,5])
|
||||
list.set_layout( Parfait::Layout.new Object)
|
||||
assert_equal 32 , list.padded_length
|
||||
end
|
||||
|
Reference in New Issue
Block a user