summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Andersson <j.a.e.andersson@gmail.com>2016-07-05 11:46:29 -0500
committerJoel Andersson <j.a.e.andersson@gmail.com>2016-07-05 17:24:41 -0500
commit45c4886a87eaaf01fc9f5a030a1e433f5eb69a6a (patch)
tree66d329b61e649fe9124b5de9728b3955aafbdb09
parent7f71bff10b668ae9433dee537f928f745b3b84c5 (diff)
downloadswig-45c4886a87eaaf01fc9f5a030a1e433f5eb69a6a.tar.gz
Issue #67 Fixed case insensitive conflict in test
-rw-r--r--Examples/test-suite/grouping.i5
-rw-r--r--Examples/test-suite/matlab/grouping_runme.m2
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