rubyx/test/slot_machine/test_slot_compiler.rb

18 lines
340 B
Ruby
Raw Normal View History

require_relative "helper"
module SlotMachine
class TestSlotCompiler < MiniTest::Test
include SlotHelper
def test_init
assert SlotCompiler.new
end
def test_labels
assert SlotCompiler.new.labels.empty?
end
def test_basic_compile
assert_equal SlottedMessage , compile("a").class
end
end
end