function blsprice_test ( )

%*****************************************************************************80
%
%% blsprice_test() tests blsprice().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 July 2021
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'blsprice_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test blsprice().\n' );
  fprintf ( 1, '  blsprice() requires MATLAB''s Financial Toolbox\n' );

  if ( is_octave )
    fprintf ( 1, '\n' );
    fprintf ( 1, '  Do not run this code on Octave!\n' );
    return
  end

  if ( ~ license ( 'test', 'financial_toolbox' ) )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'blsprice_test(): CANCELLED!\n' );
    fprintf ( 1, '  Test cancelled.\n' );
    fprintf ( 1, '  blsprice() needs the MATLAB Financial Toolbox\n' );
    error ( 'blsprice() needs the MATLAB Financial Toolbox!\n' ); 
  end

  blsprice_test01 ( )
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'blsprice_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end


