mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
fixed testcase to take enum->int conversion into account
This commit is contained in:
parent
edbdef7ccf
commit
2cf192f578
@ -31,13 +31,13 @@ bool test_function1() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
float test_function2(int i) {
|
void test_function2(EMyEnumeration k) {
|
||||||
std::cout << "test_function(" << i << ")" << std::endl;
|
std::cout << "test_function(enum=" << k << ")" << std::endl;
|
||||||
return i / 2.f;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_function3(EMyEnumeration k) {
|
float test_function3(int i) {
|
||||||
std::cout << "test_function(enum=" << k << ")" << std::endl;
|
std::cout << "test_function(" << i << ")" << std::endl;
|
||||||
|
return i / 2.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
void init_ex4(py::module &m) {
|
void init_ex4(py::module &m) {
|
||||||
|
Loading…
Reference in New Issue
Block a user