function subset_union_test ( )

%*****************************************************************************80
%
%% subset_union_test() tests subset_union().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 December 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'subset_union_test():\n' );
  fprintf ( 1, '  subset_union() returns the union of two subsets.\n' );

  n = 10;

  s1 = subset_random ( n );
  i4vec_transpose_print ( n, s1, '  Subset S1:' );

  s2 = subset_random ( n );
  i4vec_transpose_print ( n, s2, '  Subset S2:' );

  s3 = subset_union ( n, s1, s2 );
  i4vec_transpose_print ( n, s3, '  Union S3:' );

  return
end
