one more send mom test

This commit is contained in:
Torsten Ruger 2017-08-29 18:28:25 +03:00
parent bbc13946ed
commit e40346b246
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
module Mom module Mom
# SlotLoad is an abstract base class for moving data into a slot # SlotLoad is an abstract base class for moving data into a slot
# A Slot is the basically an instance variable, but it must be of known type # A Slot is basically an instance variable, but it must be of known type
# #
# The value loaded can be a constant (SlotConstant) or come from another Slot (SlotMove) # The value loaded can be a constant (SlotConstant) or come from another Slot (SlotMove)
# #
@ -20,7 +20,7 @@ module Mom
# @left: is an array of symbols, that specifies the first the object, and then the Slot. # @left: is an array of symbols, that specifies the first the object, and then the Slot.
# The first element is either a known type name (Capitalized symbol of the class name) , # The first element is either a known type name (Capitalized symbol of the class name) ,
# or the symbol :message # or the symbol :message
# Ant subsequent symbols must be instance variables on the previous type. # And subsequent symbols must be instance variables on the previous type.
# Examples: [:message , :self] or [:Space : :next_message] # Examples: [:message , :self] or [:Space : :next_message]
# #
# @right: depends on the derived Class # @right: depends on the derived Class

View File

@ -9,6 +9,9 @@ module Vool
@stats = compile_first_method( "5.mod4(1,2)").first @stats = compile_first_method( "5.mod4(1,2)").first
end end
def test_stats
assert_equal Array , @stats.class
end
def test_class_compiles def test_class_compiles
assert_equal Mom::SlotConstant , @stats.first.class , @stats assert_equal Mom::SlotConstant , @stats.first.class , @stats
end end