% Regression test function (black blox) for FreeMat v4.0
% This function is autogenerated by helpgen.
function bbtest_success = bbtest_inline
  bbtest_success = 1;
NumErrors = 0;
try
  a = inline('x^2')

catch
  NumErrors = NumErrors + 1;
end
try
  a(3)

catch
  NumErrors = NumErrors + 1;
end
try
  a(i)

catch
  NumErrors = NumErrors + 1;
end
if (NumErrors ~= 0) bbtest_success = 0; return; end
NumErrors = 0;
try
  a = inline('x+y-cos(x+y)')

catch
  NumErrors = NumErrors + 1;
end
try
  a(pi,-pi)

catch
  NumErrors = NumErrors + 1;
end
if (NumErrors ~= 0) bbtest_success = 0; return; end
NumErrors = 0;
try
  a = inline('x+t-sin(x)','x','t')

catch
  NumErrors = NumErrors + 1;
end
try
  a(0.5,1)

catch
  NumErrors = NumErrors + 1;
end
if (NumErrors ~= 0) bbtest_success = 0; return; end
NumErrors = 0;
try
  a = inline('cos(t)')

catch
  NumErrors = NumErrors + 1;
end
try
  feval(a,pi/2)

catch
  NumErrors = NumErrors + 1;
end
if (NumErrors ~= 0) bbtest_success = 0; return; end
