some test change because of renaming
next is a keyword, can't be used as instance writer fake_memory gets the pobject for debug
This commit is contained in:
@ -3,7 +3,7 @@ require_relative "../helper"
|
||||
module Risc
|
||||
class TestFakeMemory < MiniTest::Test
|
||||
def setup
|
||||
@fake = FakeMemory.new(2,16)
|
||||
@fake = FakeMemory.new(1 , 2,16)
|
||||
end
|
||||
def test_init
|
||||
assert @fake
|
||||
@ -17,9 +17,6 @@ module Risc
|
||||
def test_access_fail_big
|
||||
assert_raises {@fake.set(20 , 12)}
|
||||
end
|
||||
def test_access_fail_small
|
||||
assert_raises {@fake.set(1 , 12)}
|
||||
end
|
||||
def test_access_fail_minus
|
||||
assert_raises {@fake.set(-1 , 12)}
|
||||
end
|
||||
|
Reference in New Issue
Block a user