fixed testcase to take enum->int conversion into account

This commit is contained in:
Wenzel Jakob 2015-10-04 15:17:12 +02:00
parent edbdef7ccf
commit 2cf192f578

View File

@ -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) {