function r83s_to_r8ge_test ( )

%*****************************************************************************80
%
%% R83S_TO_R8GE_TEST tests R83S_TO_R8GE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 September 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R83S_TO_R8GE_TEST\n' );
  fprintf ( 1, '  R83S_TO_R8GE converse an R83S matrix to R8GE format.\n' );
  fprintf ( 1, '  We check three cases, M<N, M=N, M>N.\n' );

  for i = 1 : 3

    if ( i == 1 )
      m = 3;
      n = 5;
    elseif ( i == 2 )
      m = 5;
      n = 5;
    elseif ( i == 3 )
      m = 5;
      n = 3;
    end

    seed = 123456789;
    [ a_83s, seed ] = r83s_random ( m, n, seed );
    r83s_print ( m, n, a_83s, '  R83s matrix:' );

    a_ge = r83s_to_r8ge ( m, n, a_83s );
    r8ge_print ( m, n, a_ge, '  R8GE matrix:' );

  end

  return
end
