From e40346b246ceea26c9bd2e7d4947f91cc63d9610 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Tue, 29 Aug 2017 18:28:25 +0300 Subject: [PATCH] one more send mom test --- lib/mom/slot_load.rb | 4 ++-- test/vool/to_mom/send/test_send_simple_args.rb | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/mom/slot_load.rb b/lib/mom/slot_load.rb index 19e31cfd..ecf7b25f 100644 --- a/lib/mom/slot_load.rb +++ b/lib/mom/slot_load.rb @@ -1,7 +1,7 @@ module Mom # 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) # @@ -20,7 +20,7 @@ module Mom # @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) , # 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] # # @right: depends on the derived Class diff --git a/test/vool/to_mom/send/test_send_simple_args.rb b/test/vool/to_mom/send/test_send_simple_args.rb index 2644a8ff..a321eb6b 100644 --- a/test/vool/to_mom/send/test_send_simple_args.rb +++ b/test/vool/to_mom/send/test_send_simple_args.rb @@ -9,6 +9,9 @@ module Vool @stats = compile_first_method( "5.mod4(1,2)").first end + def test_stats + assert_equal Array , @stats.class + end def test_class_compiles assert_equal Mom::SlotConstant , @stats.first.class , @stats end