[ruby] add tests for shared_ptr of const Type.

This commit is contained in:
Takashi Tamura 2017-03-03 16:58:51 +09:00
commit b91e03d39a
2 changed files with 20 additions and 8 deletions

View file

@ -3,5 +3,7 @@ require "cpp11_shared_ptr_const"
include Cpp11_shared_ptr_const
simple_assert_equal(7, foo_vec()[0].get_m )
simple_assert_equal(7, const_foo_vec()[0].get_m )
simple_assert_equal(1, foo( Foo.new(1) ).get_m )
simple_assert_equal(7, const_foo( Foo.new(7) ).get_m )
simple_assert_equal(7, foo_vec( Foo.new(7) )[0].get_m )
simple_assert_equal(8, const_foo_vec( Foo.new(8) )[0].get_m )