start BranchListener
but on hold, since it needs positions before we have them Must create them during collection phase
This commit is contained in:
14
test/risc/position/test_branch_listener.rb
Normal file
14
test/risc/position/test_branch_listener.rb
Normal file
@ -0,0 +1,14 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Risc
|
||||
class TestBranchListener < MiniTest::Test
|
||||
def setup
|
||||
@machine = Risc.machine.boot
|
||||
@machine.translate(:interpreter)
|
||||
@machine.position_all
|
||||
end
|
||||
|
||||
def test_has_init
|
||||
end
|
||||
end
|
||||
end
|
@ -1,8 +1,7 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Risc
|
||||
# tests that require a boot and test propagation
|
||||
class TestcodeListener < MiniTest::Test
|
||||
class TestCodeListener < MiniTest::Test
|
||||
def setup
|
||||
Risc.machine.boot
|
||||
@binary = Parfait::BinaryCode.new(1)
|
||||
|
@ -1,7 +1,6 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Risc
|
||||
# tests that require a boot and test propagation
|
||||
class TestCodeListenerFull < MiniTest::Test
|
||||
def setup
|
||||
@machine = Risc.machine.boot
|
||||
|
@ -1,7 +1,6 @@
|
||||
require_relative "helper"
|
||||
|
||||
module Risc
|
||||
# tests that require a boot and test propagation
|
||||
class TestInstructionListener < MiniTest::Test
|
||||
def setup
|
||||
Risc.machine.boot
|
||||
|
Reference in New Issue
Block a user