2019-10-04 17:38:51 +03:00
|
|
|
require_relative "helper"
|
|
|
|
|
|
|
|
module SlotLanguage
|
|
|
|
class TestSlotCompiler < MiniTest::Test
|
2019-10-04 21:06:22 +03:00
|
|
|
include SlotHelper
|
|
|
|
|
2019-10-04 17:38:51 +03:00
|
|
|
def test_init
|
|
|
|
assert SlotCompiler.new
|
|
|
|
end
|
2020-02-13 12:53:41 +07:00
|
|
|
def test_labels
|
|
|
|
assert SlotCompiler.new.labels.empty?
|
|
|
|
end
|
2020-02-13 13:10:04 +07:00
|
|
|
def test_basic_compile
|
|
|
|
assert_equal Variable , compile("a").class
|
2019-10-04 21:06:22 +03:00
|
|
|
end
|
2019-10-04 17:38:51 +03:00
|
|
|
end
|
|
|
|
end
|