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