fix naming mistakes fo Word.get/set macros

This commit is contained in:
2020-03-12 17:54:39 +02:00
parent d125a1528a
commit 5c13ea1433
4 changed files with 9 additions and 7 deletions

View File

@ -5,7 +5,7 @@ module SlotMachine
class TestWordGetRisc < BootTest
def setup
super
@method = get_compiler("Word",:get)
@method = get_compiler("Word",:get_byte)
end
def test_slot_length
assert_equal :get_internal_byte , @method.callable.name

View File

@ -2,10 +2,10 @@ require_relative "helper"
module SlotMachine
module Builtin
class TestWordSetRisc < BootTest
class TestSetInternalByte < BootTest
def setup
super
@method = get_compiler("Word",:set)
@method = get_compiler("Word",:set_byte)
end
def test_slot_length
assert_equal :set_internal_byte , @method.callable.name

View File

@ -2,12 +2,12 @@ require_relative "helper"
module SlotMachine
module Builtin
class TestWordSetRisc < BootTest
class TestSetInternalWord < BootTest
def setup
@method = get_compiler("Word",:set)
end
def test_slot_length
assert_equal :set_internal_byte , @method.callable.name
assert_equal :set_internal_word , @method.callable.name
assert_equal 7 , @method.slot_instructions.length
end
def test_compile