[ruby] add tests for shared_ptr of const Type.
This commit is contained in:
parent
f96c2ad73d
commit
b91e03d39a
2 changed files with 20 additions and 8 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue