fix positioned tests
thanks to codeclimate the broken tests were still raising errors, just the wrong ones, but coverage shoed it!
This commit is contained in:
parent
23c8f54cd5
commit
7602fd0af4
@ -6,4 +6,4 @@ require_relative "test_compat"
|
||||
require_relative "test_instructions"
|
||||
require_relative "test_machine"
|
||||
require_relative "test_padding"
|
||||
require_relative "test_positioning"
|
||||
require_relative "test_positioned"
|
||||
|
@ -1,6 +1,6 @@
|
||||
require_relative "../helper"
|
||||
|
||||
class TestPositioning < MiniTest::Test
|
||||
class TestPositioned < MiniTest::Test
|
||||
def setup
|
||||
Register.machine.boot unless Register.machine.booted
|
||||
end
|
||||
@ -22,10 +22,10 @@ class TestPositioning < MiniTest::Test
|
||||
assert_equal 32 , word.padded_length
|
||||
end
|
||||
def test_raises_no_init
|
||||
assert_raises { TestPosition.new.position}
|
||||
assert_raises { Positioned.position(self)}
|
||||
end
|
||||
def test_raises_set_nil
|
||||
assert_raises { TestPosition.new.set_position nil}
|
||||
assert_raises { Positioned.set_position(self,nil)}
|
||||
end
|
||||
def test_raises_reset_far
|
||||
assert_raises do
|
Loading…
Reference in New Issue
Block a user