function variomino_area_test ( )

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

  p = [ ...
    1, 2, 1, 2 ];
  variomino_print ( p, '  variomino #1:' );
  area = variomino_area ( p );
  fprintf ( 1, '  Area is %d\n', area );

  p = [ ...
     2,  1,  0; ...
     0,  2,  0; ...
     0,  1,  2 ]; 
  variomino_print ( p, '  variomino #2:' );
  area = variomino_area ( p );
  fprintf ( 1, '  Area is %d\n', area );

  p = [ ...
     2,  0,  0;
     1,  2,  3 ];
  variomino_print ( p, '  variomino #3:' );
  area = variomino_area ( p );
  fprintf ( 1, '  Area is %d\n', area );

  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:' );
  area = variomino_area ( p );
  fprintf ( 1, '  Area is %d\n', area );
 
  return
end

