move adapter stuff around

This commit is contained in:
Torsten Ruger
2018-06-29 14:26:25 +03:00
parent 86b1edb40c
commit e6f01748ff
4 changed files with 25 additions and 23 deletions

View File

@ -0,0 +1,23 @@
require_relative "helper"
module Parfait
class TestAdapter < MiniTest::Test
def setup
Risc.machine.boot
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
end