function ch_to_digit_bin_test ( )

%*****************************************************************************80
%
%% ch_to_digit_bin_test() tests ch_to_digit_bin().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 August 2023
%
%  Author:
%
%    John Burkardt
%
  c_test = [ ...
    '0', '1', '2', '3', '4', ...
    '5', '6', '7', '8', '9', ...
    'X', '?', ' ' ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'ch_to_digit_bin_test():\n' );
  fprintf ( 1, '  ch_to_digit(): character -> binary digit\n' );
  fprintf ( 1, '\n' );
 
  for i = 1 : 13
    c = c_test(i);
    i2 = ch_to_digit_bin ( c );
    fprintf ( 1, '  %8d  "%c"  %8d\n', i, c, i2 );
  end
 
  return
end
