rubyx/test/parfait/test_object.rb
Torsten Rüger 6811fc4174 fix interpreter to output symbols
which amazingly lets us get at classnames etc
2019-09-08 15:31:03 +03:00

24 lines
472 B
Ruby

require_relative "helper"
module Parfait
class TestObject < ParfaitTest
def setup
super
@object = ::Parfait::Object.new
end
def test_empty_object_doesnt_return
assert_nil @object.get_internal_word(3)
end
def test_one_set1
assert_equal @object.get_type , @object.set_internal_word(0, @object.get_type)
end
def test_type
assert_equal ::Parfait::Type , @object.get_internal_word( 0 ).class
end
end
end