2021-06-19 14:35:20 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from pybind11_tests import class_sh_shared_ptr_copy_move as m
|
|
|
|
|
|
|
|
|
2021-06-20 07:44:25 +00:00
|
|
|
def test_shptr_copy():
|
|
|
|
txt = m.test_ShPtr_copy()[0].get_text()
|
|
|
|
assert txt == "FooShPtr_copy"
|
2021-06-19 14:35:20 +00:00
|
|
|
|
|
|
|
|
2021-06-20 07:44:25 +00:00
|
|
|
def test_smhld_copy():
|
|
|
|
txt = m.test_SmHld_copy()[0].get_text()
|
|
|
|
assert txt == "FooSmHld_copy"
|
2021-06-19 14:35:20 +00:00
|
|
|
|
|
|
|
|
2021-06-20 07:44:25 +00:00
|
|
|
def test_shptr_move():
|
|
|
|
txt = m.test_ShPtr_move()[0].get_text()
|
|
|
|
assert txt == "FooShPtr_move"
|
2021-06-19 14:35:20 +00:00
|
|
|
|
|
|
|
|
2021-06-20 07:44:25 +00:00
|
|
|
def test_smhld_move():
|
|
|
|
txt = m.test_SmHld_move()[0].get_text()
|
|
|
|
assert txt == "FooSmHld_move"
|