last test fixed, ruby layer complete

This commit is contained in:
Torsten Ruger
2018-07-20 21:27:55 +03:00
parent b00b0cf064
commit f620f0fd74
3 changed files with 2 additions and 19 deletions

View File

@ -61,22 +61,4 @@ module Ruby
assert_nil lst.name
end
end
class TestSendReceiverType < MiniTest::Test
include RubyTests
def setup
Parfait.boot!
end
def test_int_receiver
sent = compile( "5.div4")
assert_equal Parfait::Type , sent.receiver.ct_type.class
assert_equal "Integer_Type" , sent.receiver.ct_type.name
end
def test_string_receiver
sent = compile( "'5'.putstring")
assert_equal Parfait::Type , sent.receiver.ct_type.class
assert_equal "Word_Type" , sent.receiver.ct_type.name
end
end
end