diff options
-rw-r--r-- | Examples/test-suite/grouping.i | 5 | ||||
-rw-r--r-- | Examples/test-suite/matlab/grouping_runme.m | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Examples/test-suite/grouping.i b/Examples/test-suite/grouping.i index 5632231d0..d9103381d 100644 --- a/Examples/test-suite/grouping.i +++ b/Examples/test-suite/grouping.i @@ -28,4 +28,9 @@ int negate(int x) { %} +/* MATLAB/Octave not (always) case sensitive */ +#ifdef SWIGMATLAB +%rename(NEGATEC) NEGATE; +#endif + %constant UnaryOp *NEGATE = negate; diff --git a/Examples/test-suite/matlab/grouping_runme.m b/Examples/test-suite/matlab/grouping_runme.m index 4c7dfb3c2..6a97ce263 100644 --- a/Examples/test-suite/matlab/grouping_runme.m +++ b/Examples/test-suite/matlab/grouping_runme.m @@ -5,7 +5,7 @@ end grouping.test2(42); -x = (grouping.do_unary(37, grouping.NEGATE)); +x = (grouping.do_unary(37, grouping.NEGATEC)); if (x ~= -37) error end |