rubyx/test/risc/test_compat.rb

23 lines
461 B
Ruby
Raw Normal View History

require_relative "../helper"
class TestCompat < MiniTest::Test
2015-10-16 16:13:08 +02:00
def setup
Risc.machine.boot unless Risc.machine.booted
2015-10-16 16:13:08 +02:00
end
2015-10-07 09:53:45 +02:00
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