40d81681b5
in the future parfait will be coded in some and translated back into ruby to “adapt” until then, all ruby code is the adapter
23 lines
469 B
Ruby
23 lines
469 B
Ruby
require_relative "../helper"
|
|
|
|
|
|
class TestCompat < MiniTest::Test
|
|
|
|
def setup
|
|
Register.machine.boot unless Register.machine.booted
|
|
end
|
|
|
|
def test_list_create_from_array
|
|
array = [1,2,3]
|
|
list = Parfait.new_list(array)
|
|
assert_equal array , list.to_a
|
|
end
|
|
|
|
def test_word_create_from_string
|
|
string = "something"
|
|
word = Parfait.new_word(string)
|
|
assert_equal word , Parfait.new_word(string)
|
|
assert_equal string , word.to_string
|
|
end
|
|
end
|