fix ass tests
bit weak really, but pass
This commit is contained in:
parent
46ed4285a2
commit
9989cc12e0
@ -8,11 +8,11 @@ module Risc
|
||||
end
|
||||
def test_no_object
|
||||
@assembler = Assembler.new(@machine , {})
|
||||
assert_nil @machine.translate_arm
|
||||
assert @machine.translate_arm
|
||||
end
|
||||
def test_space
|
||||
@assembler = Assembler.new(@machine , Collector.collect_space)
|
||||
assert_nil @machine.translate_arm
|
||||
assert @machine.translate_arm
|
||||
end
|
||||
|
||||
def test_write_fails
|
||||
@ -21,22 +21,22 @@ module Risc
|
||||
end
|
||||
def test_assemble_no_objects
|
||||
@assembler = Assembler.new(@machine , {})
|
||||
assert_nil @machine.translate_arm
|
||||
assert @machine.translate_arm
|
||||
assert @assembler.assemble
|
||||
end
|
||||
|
||||
def test_translate_space
|
||||
@assembler = Assembler.new(@machine , Collector.collect_space)
|
||||
assert_nil @machine.translate_arm
|
||||
assert @machine.translate_arm
|
||||
end
|
||||
def test_assemble_space
|
||||
@assembler = Assembler.new(@machine , Collector.collect_space)
|
||||
assert_nil @machine.translate_arm
|
||||
assert @machine.translate_arm
|
||||
assert @assembler.assemble
|
||||
end
|
||||
def test_write_space
|
||||
@assembler = Assembler.new(@machine , Collector.collect_space)
|
||||
assert_nil @machine.translate_arm
|
||||
assert @machine.translate_arm
|
||||
assert @assembler.write_as_string
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user