function bank_is_valid_test ( )

%*****************************************************************************80
%
%% bank_is_valid_test() tests bank_is_valid().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 October 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'bank_is_valid_test()\n' );
  fprintf ( 1, '  bank_is_valid() reports whether a bank checksum is valid.\n' );
  fprintf ( 1, '\n' );
%
%  Supply a valid code code, with dashes.
%
  s1 = '323-371-076';
  value1 = 1;
  value2 = bank_is_valid ( s1 );
  fprintf ( 1, '  Validity of "%s" is %d, expecting %d\n', s1, value2, value1 );
%
%  Modify one digit.
%
  s1 = '323-371-576';
  value1 = 0;
  value2 = bank_is_valid ( s1 );
  fprintf ( 1, '  Validity of "%s" is %d, expecting %d\n', s1, value2, value1 );
%
%  Supply a valid code, with spaces.
%
  s1 = '123 456 780';
  value1 = 1;
  value2 = bank_is_valid ( s1 );
  fprintf ( 1, '  Validity of "%s" is %d, expecting %d\n', s1, value2, value1 );
%
%  Modify the check digit.
%
  s1 = '123 456 789';
  value1 = 0;
  value2 = bank_is_valid ( s1 );
  fprintf ( 1, '  Validity of "%s" is %d, expecting %d\n', s1, value2, value1 );

  return
end
