move from new_object to normal new
This commit is contained in:
@ -34,4 +34,15 @@ class TestSpace < MiniTest::Test
|
||||
# there is a 5.times in space, but one Message gets created before
|
||||
assert_equal 5 + 1 , all.length
|
||||
end
|
||||
def test_message_layout
|
||||
mess = @machine.space.first_message
|
||||
one_way = mess.get_layout
|
||||
assert one_way
|
||||
assert mess.instance_variable_defined :next_message
|
||||
other_way = mess.get_instance_variable :layout
|
||||
#puts mess.get_instance_variables
|
||||
# assert other_way
|
||||
# assert_equal one_way , other_way , "not same "
|
||||
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user