20 lines
415 B
Ruby
20 lines
415 B
Ruby
|
require_relative "../helper"
|
||
|
|
||
|
module Vool
|
||
|
class TestArray < MiniTest::Test
|
||
|
|
||
|
def test_empty
|
||
|
lst = Compiler.compile( "[]")
|
||
|
assert_equal ArrayStatement , lst.class
|
||
|
end
|
||
|
def test_one
|
||
|
lst = Compiler.compile( "[1]")
|
||
|
assert_equal ArrayStatement , lst.class
|
||
|
end
|
||
|
def test_two
|
||
|
lst = Compiler.compile( "[1,2]")
|
||
|
assert_equal ArrayStatement , lst.class
|
||
|
end
|
||
|
end
|
||
|
end
|