more auto guard rules

and related renaming of files
This commit is contained in:
Torsten Ruger
2016-12-16 01:14:09 +02:00
parent 516bbd10b7
commit 6f9955a726
7 changed files with 28 additions and 25 deletions

View File

@ -1,10 +1,11 @@
require_relative "test_attributes"
require_relative "test_class"
require_relative "test_dictionary"
require_relative "test_frame"
require_relative "test_list"
require_relative "test_message"
require_relative "test_meta"
require_relative "test_method"
require_relative "test_meta_class"
require_relative "test_typed_method"
require_relative "test_object"
require_relative "test_space"
require_relative "test_word"

View File

@ -10,11 +10,7 @@ class TestAttributes < MiniTest::Test
def test_message_get_type
assert_equal Parfait::Type , @type.class
end
def test_message_type_first
@type.object_class = :next_message
assert_equal :type , @type.instance_names.first
assert_equal :next_message , @type.object_class
end
def test_message_name_nil
last = @type.instance_names.last
assert_equal :indexed_length , last , @type.instance_names.inspect

View File

@ -0,0 +1,19 @@
require_relative "../helper"
class TestFrames < MiniTest::Test
def setup
@frame = Register.machine.boot.space.first_message.frame
@type = @frame.get_type
end
def test_frame_get_type
assert_equal Parfait::Type , @type.class
end
def test_frame_next_set
@frame.next_frame = :next_frame
assert_equal :next_frame , @frame.next_frame
end
end