rubyx/test/slot_language/test_slot_compiler.rb

18 lines
330 B
Ruby
Raw Normal View History

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
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