test_vector_unique_ptr_member.py
Go to the documentation of this file.
1 from __future__ import annotations
2 
3 import pytest
4 
5 from pybind11_tests import vector_unique_ptr_member as m
6 
7 
8 @pytest.mark.parametrize("num_elems", range(3))
9 def test_create(num_elems):
10  vo = m.VectorOwner.Create(num_elems)
11  assert vo.data_size() == num_elems
12 
13 
14 def test_cast():
15  vo = m.VectorOwner.Create(0)
16  assert m.py_cast_VectorOwner_ptr(vo) is vo
test_vector_unique_ptr_member.test_cast
def test_cast()
Definition: test_vector_unique_ptr_member.py:14
test_vector_unique_ptr_member.test_create
def test_create(num_elems)
Definition: test_vector_unique_ptr_member.py:9
gtsam::range
Double_ range(const Point2_ &p, const Point2_ &q)
Definition: slam/expressions.h:30


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:07:09