function ch_to_digit_test ( )

%*****************************************************************************80
%
%% CH_TO_DIGIT_TEST tests CH_TO_DIGIT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    05 June 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'CH_TO_DIGIT_TEST\n' );
  fprintf ( 1, '  CH_TO_DIGIT: character -> decimal digit\n' );
  fprintf ( 1, '\n' );
 
  for i = -2 : 11
    c = digit_to_ch ( i );
    i2 = ch_to_digit ( c );
    fprintf ( 1, '  %8d  "%c"  %8d\n', i, c, i2 );
  end
 
  return
end
