fix argument indexing

good old index bug, off by one
this time forgot about parfait 1-indexing
This commit is contained in:
Torsten Ruger
2018-03-30 20:01:31 +03:00
parent b997f01236
commit ee8b9469af
4 changed files with 56 additions and 8 deletions

View File

@ -21,6 +21,7 @@ module Vool
def test_args_one_str
assert_equal Mom::IntegerConstant, @ins.next.arguments[0].right.known_object.class
assert_equal 1, @ins.next.arguments[0].right.known_object.value
assert_equal [:next_message, :arguments, 2], @ins.next.arguments[0].left.slots
end
end
end