reenable now working tests
This commit is contained in:
parent
606e3f8cb3
commit
5eee79719d
@ -21,7 +21,6 @@ module Risc
|
||||
instruction.assemble(self)
|
||||
end
|
||||
instruction = instruction.next
|
||||
puts "Next #{instruction.to_s}"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -97,7 +97,7 @@ module Risc
|
||||
def create_binary
|
||||
objects.each do |id , method|
|
||||
next unless method.is_a? Parfait::TypedMethod
|
||||
puts "Binary for #{method.name}:#{}"
|
||||
#puts "Binary for #{method.name}:#{}"
|
||||
writer = BinaryWriter.new(method.binary)
|
||||
writer.assemble(method.cpu_instructions)
|
||||
end
|
||||
|
@ -6,26 +6,25 @@ module Risc
|
||||
def setup
|
||||
@machine = Risc.machine.boot
|
||||
end
|
||||
def pest_no_object
|
||||
def test_no_object
|
||||
@assembler = Assembler.new(@machine , {})
|
||||
end
|
||||
def pest_space
|
||||
def test_space
|
||||
@assembler = Assembler.new(@machine , Collector.collect_space)
|
||||
end
|
||||
def pest_write_fails
|
||||
def test_write_fails
|
||||
@assembler = Assembler.new(@machine , {})
|
||||
assert_raises{ @assembler.write_as_string} #must translate first
|
||||
end
|
||||
def pest_assemble_no_objects
|
||||
def test_assemble_no_objects
|
||||
@assembler = Assembler.new(@machine , {})
|
||||
assert @machine.translate_arm
|
||||
assert @assembler.assemble
|
||||
assert @machine.position_all
|
||||
end
|
||||
|
||||
def pest_assemble_space
|
||||
def test_assemble_space
|
||||
@assembler = Assembler.new(@machine , Collector.collect_space)
|
||||
assert @machine.translate_arm
|
||||
assert @assembler.assemble
|
||||
assert @machine.position_all
|
||||
end
|
||||
def test_write_space
|
||||
assert @machine.translate_arm
|
||||
|
@ -24,7 +24,7 @@ module Risc
|
||||
end
|
||||
|
||||
def test_binary
|
||||
# @machine.create_binary
|
||||
@machine.create_binary
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user