2015-05-18 09:47:29 +02:00
|
|
|
require_relative "../helper"
|
|
|
|
|
|
|
|
|
|
|
|
class TestCompat < MiniTest::Test
|
|
|
|
|
2015-07-02 09:26:48 +02:00
|
|
|
def ttest_list_create_from_array
|
2015-05-18 09:47:29 +02:00
|
|
|
array = [1,2,3]
|
|
|
|
list = Virtual.new_list(array)
|
|
|
|
assert_equal 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)
|
2015-07-02 09:26:48 +02:00
|
|
|
assert_equal string , word.to_string
|
2015-05-18 09:47:29 +02:00
|
|
|
end
|
|
|
|
end
|