diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2019-06-07 07:18:17 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2019-06-27 07:40:49 +0100 |
commit | 116b6b10284f0ec3f11f19c6bf56decc2e019798 (patch) | |
tree | de1b487928355ba46deac8c6cf627482f721a730 | |
parent | 9bca8ae27ea2dfe48a7862b7061038fbd536470f (diff) | |
download | swig-116b6b10284f0ec3f11f19c6bf56decc2e019798.tar.gz |
Remove deprecated calls in Octave testcases
Fixes warning using Octave 5.1:
warning: findstr is obsolete; use strfind instead
-rw-r--r-- | Examples/test-suite/octave/template_typedef_cplx2_runme.m | 12 | ||||
-rw-r--r-- | Examples/test-suite/octave/template_typedef_cplx_runme.m | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/Examples/test-suite/octave/template_typedef_cplx2_runme.m b/Examples/test-suite/octave/template_typedef_cplx2_runme.m index 94d3beb79..a72e0f1e0 100644 --- a/Examples/test-suite/octave/template_typedef_cplx2_runme.m +++ b/Examples/test-suite/octave/template_typedef_cplx2_runme.m @@ -12,7 +12,7 @@ catch error("is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(d)) != 1) +if (strfind('ArithUnaryFunction',swig_type(d)) != 1) d error("is not an ArithUnaryFunction") error @@ -26,7 +26,7 @@ catch error("is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(e)) != 1) +if (strfind('ArithUnaryFunction',swig_type(e)) != 1) e error("is not an ArithUnaryFunction") endif @@ -44,7 +44,7 @@ catch error("is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(c)) != 1) +if (strfind('ArithUnaryFunction',swig_type(c)) != 1) c error("is not an ArithUnaryFunction") endif @@ -57,7 +57,7 @@ catch error("is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(f)) != 1) +if (strfind('ArithUnaryFunction',swig_type(f)) != 1) f error("is not an ArithUnaryFunction") endif @@ -74,7 +74,7 @@ catch error("is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(g)) != 1) +if (strfind('ArithUnaryFunction',swig_type(g)) != 1) g error("is not an ArithUnaryFunction") error @@ -89,7 +89,7 @@ catch error("is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(h)) == -1) +if (strfind('ArithUnaryFunction',swig_type(h)) == -1) h error("is not an ArithUnaryFunction") endif diff --git a/Examples/test-suite/octave/template_typedef_cplx_runme.m b/Examples/test-suite/octave/template_typedef_cplx_runme.m index d00981cec..9e3e3888f 100644 --- a/Examples/test-suite/octave/template_typedef_cplx_runme.m +++ b/Examples/test-suite/octave/template_typedef_cplx_runme.m @@ -12,7 +12,7 @@ catch error("is not an instance") end_try_catch -if (findstr("ArithUnaryFunction",swig_type(d)) != 1) +if (strfind("ArithUnaryFunction",swig_type(d)) != 1) d error("is not an ArithUnaryFunction") endif @@ -24,7 +24,7 @@ catch error(e, "is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(e)) != 1); +if (strfind('ArithUnaryFunction',swig_type(e)) != 1); c error("is not an ArithUnaryFunction") endif @@ -42,7 +42,7 @@ catch error("is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(c)) != 1) +if (strfind('ArithUnaryFunction',swig_type(c)) != 1) c error("is not an ArithUnaryFunction") endif @@ -55,7 +55,7 @@ catch error("is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(f)) != 1) +if (strfind('ArithUnaryFunction',swig_type(f)) != 1) f error("is not an ArithUnaryFunction") endif @@ -72,7 +72,7 @@ catch error("is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(g)) != 1) +if (strfind('ArithUnaryFunction',swig_type(g)) != 1) g error("is not an ArithUnaryFunction") endif @@ -86,7 +86,7 @@ catch error("is not an instance") end_try_catch -if (findstr('ArithUnaryFunction',swig_type(h)) != 1) +if (strfind('ArithUnaryFunction',swig_type(h)) != 1) h error("is not an ArithUnaryFunction") endif |