Skip to content

Commit

Permalink
upgrade custom converter/executor API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wlav committed Jul 15, 2021
1 parent a7a2543 commit ac25707
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class APICheck3Converter : public CPyCppyy::Converter {
typedef CPyCppyy::ConverterFactory_t cf_t;
void register_a3() {
CPyCppyy::RegisterConverter("APICheck3", (cf_t)+[](CPyCppyy::dims_t) { static APICheck3Converter c{}; return &c; });
CPyCppyy::RegisterConverter("APICheck3&", (cf_t)+[](CPyCppyy::dims_t) { static APICheck3Converter c{}; return &c; });
CPyCppyy::RegisterConverter("APICheck3", (cf_t)+[](CPyCppyy::cdims_t) { static APICheck3Converter c{}; return &c; });
CPyCppyy::RegisterConverter("APICheck3&", (cf_t)+[](CPyCppyy::cdims_t) { static APICheck3Converter c{}; return &c; });
}
void unregister_a3() {
CPyCppyy::UnregisterConverter("APICheck3");
Expand Down Expand Up @@ -169,7 +169,7 @@ class APICheck4Executor : public CPyCppyy::Executor {
typedef CPyCppyy::ExecutorFactory_t ef_t;
void register_a4() {
CPyCppyy::RegisterExecutor("APICheck4*", (ef_t)+[](CPyCppyy::dims_t) { static APICheck4Executor c{}; return &c; });
CPyCppyy::RegisterExecutor("APICheck4*", (ef_t)+[](CPyCppyy::cdims_t) { static APICheck4Executor c{}; return &c; });
}
void unregister_a4() {
CPyCppyy::UnregisterExecutor("APICheck4*");
Expand Down

0 comments on commit ac25707

Please sign in to comment.