function ring_data_test ( )

%*****************************************************************************80
%
%% ring_data_test tests ring_data_test.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    05 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../ring_data' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ring_data_test:\n' );
  fprintf ( 1, '  Test ring_data,\n' );
  fprintf ( 1, '  to create, plot, and save ring data.\n' );

  ring_num = 3;
  ring_pop = [ 40, 60, 100 ];
  ring_rad1 = [ 1.0, 6.0, 9.0 ];
  ring_rad2 = [ 3.0, 7.0, 10.0 ];
  
  ring_input_print ( ring_num, ring_pop, ring_rad1, ring_rad2 );

  [ m, p, id ] = ring_data_generate ( ring_num, ring_pop, ring_rad1, ...
    ring_rad2 );

  ring_data_print ( m, p, id );

  ring_data_plot ( m, p, id );

  ring_data_write ( m, p, id, 'ring_data_test.dat' );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ring_data_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../ring_data' );

  return
end
