diff options
author | Joel Andersson <j.a.e.andersson@gmail.com> | 2016-07-05 11:46:29 -0500 |
---|---|---|
committer | Joel Andersson <j.a.e.andersson@gmail.com> | 2016-07-05 17:24:41 -0500 |
commit | 45c4886a87eaaf01fc9f5a030a1e433f5eb69a6a (patch) | |
tree | 66d329b61e649fe9124b5de9728b3955aafbdb09 | |
parent | 7f71bff10b668ae9433dee537f928f745b3b84c5 (diff) | |
download | swig-45c4886a87eaaf01fc9f5a030a1e433f5eb69a6a.tar.gz |
Issue #67 Fixed case insensitive conflict in test
-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 |