Remove deprecated calls in Octave testcases
Fixes warning using Octave 5.1: warning: findstr is obsolete; use strfind instead
This commit is contained in:
parent
9bca8ae27e
commit
116b6b1028
2 changed files with 12 additions and 12 deletions
|
|
@ -12,7 +12,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(d)) != 1)
|
if (strfind('ArithUnaryFunction',swig_type(d)) != 1)
|
||||||
d
|
d
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
error
|
error
|
||||||
|
|
@ -26,7 +26,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(e)) != 1)
|
if (strfind('ArithUnaryFunction',swig_type(e)) != 1)
|
||||||
e
|
e
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
endif
|
endif
|
||||||
|
|
@ -44,7 +44,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(c)) != 1)
|
if (strfind('ArithUnaryFunction',swig_type(c)) != 1)
|
||||||
c
|
c
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
endif
|
endif
|
||||||
|
|
@ -57,7 +57,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(f)) != 1)
|
if (strfind('ArithUnaryFunction',swig_type(f)) != 1)
|
||||||
f
|
f
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
endif
|
endif
|
||||||
|
|
@ -74,7 +74,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(g)) != 1)
|
if (strfind('ArithUnaryFunction',swig_type(g)) != 1)
|
||||||
g
|
g
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
error
|
error
|
||||||
|
|
@ -89,7 +89,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(h)) == -1)
|
if (strfind('ArithUnaryFunction',swig_type(h)) == -1)
|
||||||
h
|
h
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr("ArithUnaryFunction",swig_type(d)) != 1)
|
if (strfind("ArithUnaryFunction",swig_type(d)) != 1)
|
||||||
d
|
d
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
endif
|
endif
|
||||||
|
|
@ -24,7 +24,7 @@ catch
|
||||||
error(e, "is not an instance")
|
error(e, "is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(e)) != 1);
|
if (strfind('ArithUnaryFunction',swig_type(e)) != 1);
|
||||||
c
|
c
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
endif
|
endif
|
||||||
|
|
@ -42,7 +42,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(c)) != 1)
|
if (strfind('ArithUnaryFunction',swig_type(c)) != 1)
|
||||||
c
|
c
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
endif
|
endif
|
||||||
|
|
@ -55,7 +55,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(f)) != 1)
|
if (strfind('ArithUnaryFunction',swig_type(f)) != 1)
|
||||||
f
|
f
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
endif
|
endif
|
||||||
|
|
@ -72,7 +72,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(g)) != 1)
|
if (strfind('ArithUnaryFunction',swig_type(g)) != 1)
|
||||||
g
|
g
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
endif
|
endif
|
||||||
|
|
@ -86,7 +86,7 @@ catch
|
||||||
error("is not an instance")
|
error("is not an instance")
|
||||||
end_try_catch
|
end_try_catch
|
||||||
|
|
||||||
if (findstr('ArithUnaryFunction',swig_type(h)) != 1)
|
if (strfind('ArithUnaryFunction',swig_type(h)) != 1)
|
||||||
h
|
h
|
||||||
error("is not an ArithUnaryFunction")
|
error("is not an ArithUnaryFunction")
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue