pybind11: fix and generalize example

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-02-21 00:00:02 +00:00
parent decf7f936e
commit 04a8521905
5 changed files with 28 additions and 26 deletions

View File

@@ -6,3 +6,4 @@ my_class_test = class_test.ClassTest("abc");
print(my_class_test.getName())
my_class_test.setName("012")
print(my_class_test.getName())
assert(my_class_test.getName() == my_class_test.name)