2018-04-26 12:31:37 +03:00
|
|
|
require_relative "helper"
|
2015-05-17 14:38:25 +03:00
|
|
|
|
2018-04-26 12:31:37 +03:00
|
|
|
module Parfait
|
|
|
|
class TestObject < ParfaitTest
|
2015-05-17 14:38:25 +03:00
|
|
|
|
2018-04-26 12:31:37 +03:00
|
|
|
def setup
|
|
|
|
super
|
|
|
|
@object = ::Parfait::Object.new
|
|
|
|
end
|
2015-05-17 14:38:25 +03:00
|
|
|
|
2018-04-26 12:31:37 +03:00
|
|
|
def test_empty_object_doesnt_return
|
|
|
|
assert_nil @object.get_internal_word(3)
|
|
|
|
end
|
2015-05-17 14:38:25 +03:00
|
|
|
|
2018-04-26 12:31:37 +03:00
|
|
|
def test_one_set1
|
2018-05-14 11:55:01 +03:00
|
|
|
assert_equal @object.get_type , @object.set_internal_word(0, @object.get_type)
|
2018-04-26 12:31:37 +03:00
|
|
|
end
|
2015-10-26 12:22:32 +02:00
|
|
|
|
2018-04-26 12:31:37 +03:00
|
|
|
end
|
2015-05-17 14:38:25 +03:00
|
|
|
end
|