function chrpak_test ( )

%*****************************************************************************80
%
%% chrpak_test() tests chrpak().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 August 2023
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../chrpak' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'chrpak_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s.\n', version ( ) );
  fprintf ( 1, '  Test chrpak().\n' );

  a_to_i4_test ( );

  base_to_i4_test ( );

  binary_to_i4_test ( );

  boolean_to_string_test ( );

  ch_cap_test ( );
  ch_is_digit_test ( );
  ch_is_isbn_digit_test ( );
  ch_low_test ( );
  ch_to_digit_test ( );
  ch_to_rot13_test ( );
  ch_uniform_test ( );

  chvec_lt_test ( );
  chvec_reduce_test ( );

  digit_to_ch_test ( );
  digits_decimal_to_r8_test ( );
  digits_sexagesimal_print_test ( );
  digits_sexagesimal_to_r8_test ( );

  chrpak_test046 ( );

  hex_digit_to_i4_test ( );

  i4_length_test ( );
  i4_to_a_test ( );
  i4_to_base_test ( );
  i4_to_binary_test ( );
  i4_to_binhex_test ( );
  i4_to_hex_digit_test ( );
  i4_to_isbn_digit_test ( );
  i4_to_month_abb_test ( );
  i4_to_month_name_test ( );
  i4_to_nunary_test ( );
  i4_to_oct_test ( );
  i4_to_unary_test ( );
  i4_to_uudecode_test ( );
  i4_to_xxdecode_test ( );

  i4vec_print_test ( );

  isbn_digit_to_i4_test ( );

  oct_to_i4_test ( );

  r8_to_digits_decimal_test ( );
  r8_to_digits_sexagesimal_test ( );

  s_begin_test ( );
  s_behead_substring_test ( );
  s_digits_count_test ( );
  s_eqi_test ( );
  s_escape_tex_test ( );
  s_inc_c_test ( );
  s_quote_test ( );
  s_replace_ch_test ( );
  s_replace_ch_by_s_test ( );
  s_s_subanagram_test ( );
  s_scrabble_points_test ( );
  s_sort_a_test ( );
  s_substitute_test ( );
  s_to_caesar_test ( );
  s_to_digits_test ( )
  s_to_format_test ( );
  s_to_isbn_digits_test ( );
  s_to_l4_test ( );
  s_to_rot13_test ( );
  s_word_count_test ( );
  s_word_extract_first_test ( );

  state_id_from_index_test ( );
  state_name_from_index_test ( );

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

  rmpath ( '../chrpak' );

  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

