move parfait up one, as per its module structure

This commit is contained in:
Torsten Ruger
2017-01-18 20:09:43 +02:00
parent f0c0128b38
commit da5823a1a0
32 changed files with 7 additions and 3 deletions

View File

@ -0,0 +1,27 @@
require_relative "../helper"
class TestMessage < MiniTest::Test
def setup
Register.machine.boot
@space = Parfait.object_space
@mess = @space.first_message
end
def test_length
assert_equal 9 , @mess.get_type.instance_length , @mess.get_type.inspect
end
def test_attribute_set
@mess.set_receiver( 55)
assert_equal 55 , @mess.receiver
end
def test_indexed
assert_equal 9 , @mess.get_type.variable_index(:arguments)
end
def test_next
assert @mess.next_message
end
end