rubyx/test/virtual/test_compat.rb
Torsten Ruger bd2bf612ac fixed last test
back in the green
2015-10-16 17:13:08 +03:00

23 lines
467 B
Ruby

require_relative "../helper"
class TestCompat < MiniTest::Test
def setup
Virtual.machine.boot unless Virtual.machine.booted
end
def test_list_create_from_array
array = [1,2,3]
list = Virtual.new_list(array)
assert_equal array , list.to_a
end
def test_word_create_from_string
string = "something"
word = Virtual.new_word(string)
assert_equal word , Virtual.new_word(string)
assert_equal string , word.to_string
end
end