fold last of the virtual into register

This commit is contained in:
Torsten Ruger
2015-10-22 18:16:29 +03:00
parent f658ecf425
commit dcbd3c7091
67 changed files with 161 additions and 227 deletions

View File

@ -0,0 +1,22 @@
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 = Register.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)
assert_equal string , word.to_string
end
end