function i4row_sorted_minus_test ( )

%*****************************************************************************80
%
%% i4row_sorted_minus_test tests i4row_sorted_minus.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 January 2020
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4row_sorted_minus_test:\n' );
  fprintf ( 1, '  Remove from S any rows which also occur in sorted A.\n' );

  ma = 15;
  n = 3;
  A = randi ( [ 1, 3 ], ma, n );

  A = sortrows ( A );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Sorted row matrix A:\n' );
  fprintf ( 1, '\n' );
  disp ( A );

  ms = 10;
  S = randi ( [ 1, 3 ], ms, n );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Row matrix S:\n' );
  fprintf ( 1, '\n' );
  disp ( S );

  T = i4row_sorted_minus ( S, A );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Rows of S that do not occur in A:\n' );
  fprintf ( 1, '\n' );
  disp ( T );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4row_sorted_minus_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  return
end

