function variomino_variety_test ( )

%*****************************************************************************80
%
%% variomino_variety_test() tests variomino_variety().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 April 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'variomino_variety_test():\n' );
  fprintf ( 1, '  variomino_variety() returns the variety of a variomino.\n' );

  vmax = 3;

  p = [ ...
    1, 2, 1, 2 ];
  variomino_print ( p, '  variomino #1:' );
  variety = variomino_variety ( p, vmax );
  fprintf ( 1, '  variety: %d  %d  %d\n', variety );

  p = [ ...
     2,  1,  0; ...
     0,  2,  0; ...
     0,  1,  2 ]; 
  variomino_print ( p, '  variomino #2:' );
  variety = variomino_variety ( p, vmax );
  fprintf ( 1, '  variety: %d  %d  %d\n', variety );

  p = [ ...
     2,  0,  0;
     1,  2,  3 ];
  variomino_print ( p, '  variomino #3:' );
  variety = variomino_variety ( p, vmax );
  fprintf ( 1, '  variety: %d  %d  %d\n', variety );

  p = [ ...
     0,  0,  0,  0,  3,  0;
     1,  0,  0,  0,  2,  3;
     3,  0,  2,  3,  1,  0;
     2,  0,  1,  0,  3,  0;
     1,  2,  3,  1,  2,  0 ];
  variomino_print ( p, '  variomino #4:' );
  variety = variomino_variety ( p, vmax );
  fprintf ( 1, '  variety: %d  %d  %d\n', variety );
 
  return
end

