a start on dynamic dispatch (wip)

This commit is contained in:
Torsten Ruger
2017-09-14 16:07:02 +03:00
parent be1481ce34
commit 2739747453
5 changed files with 91 additions and 8 deletions

View File

@ -10,11 +10,11 @@ module Vool
@first = @stats.first
end
def est_compiles_not_array
def test_compiles_not_array
assert Array != @stats.class , @stats
end
def est_class_compiles
assert_equal Mom::SlotConstant , @first.class , @stats
def test_class_compiles
assert_equal Mom::IfStatement , @first.class , @stats
end
def est_slot_is_set
assert @stats.first.left