fix all tests for previous commit

This commit is contained in:
Torsten Ruger
2019-02-08 23:03:23 +02:00
parent 74b790250a
commit 37eeb81f45
71 changed files with 117 additions and 94 deletions

View File

@ -4,7 +4,7 @@ module Mom
class TestSlotDefinitionConstant < MiniTest::Test
def setup
Parfait.boot!
Parfait.boot!(Parfait.default_test_options)
@compiler = Risc::FakeCompiler.new
@definition = SlotDefinition.new(StringConstant.new("hi") , [])
@register = @definition.to_register(@compiler , InstructionMock.new)

View File

@ -3,7 +3,7 @@ require_relative "helper"
module Mom
class TestSlotDefinitionKnown1 < MiniTest::Test
def setup
Parfait.boot!
Parfait.boot!(Parfait.default_test_options)
@compiler = Risc::FakeCompiler.new
@definition = SlotDefinition.new(:message , :caller)
@register = @definition.to_register(@compiler , "fake source")

View File

@ -3,7 +3,7 @@ require_relative "helper"
module Mom
class TestSlotDefinitionKnown2 < MiniTest::Test
def setup
Parfait.boot!
Parfait.boot!(Parfait.default_test_options)
@compiler = Risc::FakeCompiler.new
@definition = SlotDefinition.new(:message , [:caller , :type])
@register = @definition.to_register(@compiler , InstructionMock.new)

View File

@ -4,7 +4,7 @@ module Mom
class TestSlotLoad1 < MiniTest::Test
def setup
Parfait.boot!
Parfait.boot!(Parfait.default_test_options)
load = SlotLoad.new( [:message, :caller] , [:message,:type] )
@compiler = Risc::FakeCompiler.new
load.to_risc(@compiler)

View File

@ -4,7 +4,7 @@ module Mom
class TestSlotLoad2 < MiniTest::Test
def setup
Parfait.boot!
Parfait.boot!(Parfait.default_test_options)
@compiler = Risc::FakeCompiler.new
load = SlotLoad.new( [:message, :caller, :type] , [:message, :caller , :type] )
load.to_risc(@compiler)