more auto guard rules
and related renaming of files
This commit is contained in:
@ -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"
|
||||
|
@ -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
|
||||
|
19
test/typed/parfait/test_frame.rb
Normal file
19
test/typed/parfait/test_frame.rb
Normal 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
|
Reference in New Issue
Block a user