add the addresses from labels as constants

This commit is contained in:
Torsten Ruger
2018-08-29 21:06:29 +03:00
parent ea7f3c9653
commit dc12c1d70b
6 changed files with 15 additions and 12 deletions

View File

@ -22,7 +22,7 @@ module Mom
assert_equal Array , @comp.constants.class
end
def test_has_constant
assert_equal "Hi" , @comp.constants.first.to_string
assert_equal "Hi" , @comp.constants[1].to_string
end
def test_has_translate
assert @comp.translate(:interpreter)