rename position accessor

for future
This commit is contained in:
Torsten Ruger
2016-12-28 21:40:06 +02:00
parent c60949fe24
commit 80237e5033
8 changed files with 11 additions and 11 deletions

View File

@ -82,7 +82,7 @@ class TestLogic < MiniTest::Test
def label pos = 0x22
l = Register.label("some" , "Label")
l.position = pos
l.set_position pos
l
end

View File

@ -32,13 +32,13 @@ class TestPositioning < MiniTest::Test
assert_raises { TestPosition.new.position}
end
def test_raises_set_nil
assert_raises { TestPosition.new.position = nil}
assert_raises { TestPosition.new.set_position nil}
end
def test_raises_reset_far
assert_raises do
test = TestPosition.new
test.position = 0
test.position = 12000
test.set_position 0
test.set_position 12000
end
end
end