Remove deprecated calls in Octave testcases

Fixes warning using Octave 5.1:
  warning: findstr is obsolete; use strfind instead
This commit is contained in:
William S Fulton 2019-06-07 07:18:17 +01:00
commit 116b6b1028
2 changed files with 12 additions and 12 deletions

View file

@ -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

View file

@ -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