1 from pybind11_tests
import constants_and_functions
as m
5 assert m.some_constant == 14
9 assert m.test_function() ==
"test_function()" 10 assert m.test_function(7) ==
"test_function(7)" 11 assert m.test_function(m.MyEnum.EFirstEntry) ==
"test_function(enum=1)" 12 assert m.test_function(m.MyEnum.ESecondEntry) ==
"test_function(enum=2)" 14 assert m.test_function() ==
"test_function()" 15 assert m.test_function(
"abcd") ==
"test_function(char *)" 16 assert m.test_function(1, 1.0) ==
"test_function(int, float)" 17 assert m.test_function(1, 1.0) ==
"test_function(int, float)" 18 assert m.test_function(2.0, 2) ==
"test_function(float, int)" 22 assert m.print_bytes(m.return_bytes()) ==
"bytes[1 0 2 0]" 39 assert m.f4(140) == 144
def test_function_overloading()
def test_exception_specifiers()