rubyx/test/slot_language/test_slot_compiler.rb

18 lines
335 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
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