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
|
2019-10-04 16:38:51 +02:00
|
|
|
def test_compile
|
2019-10-04 20:06:22 +02:00
|
|
|
assert_equal SlotMaker , compile("a").class
|
|
|
|
end
|
2019-10-04 16:38:51 +02:00
|
|
|
end
|
|
|
|
end
|