function boundary_word_parity_test ( )

%*****************************************************************************80
%
%% boundary_word_parity_test() tests boundary_word_parity().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 May 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boundary_word_parity_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  boundary_word_parity() returns the parity of the polyomino\n' );
  fprintf ( 1, '  defined by a given boundary word.\n' );
  fprintf ( 1, '\n' );

  for i = 1 : 5
    if ( i == 1 )
      s = 'rrururullulddldd';
    elseif ( i == 2 )
      s = 'rurdrururulurullddlldldd';
    elseif ( i == 3 )
      s = 'rurdruuluulldrdldd';
    elseif ( i == 4 )
      s = 'rurdrdldrdrurulururdrurululdlulurululdldrdldluldldrd';
    else
      s = 'rurdruuuldluldldrd';
    end
    parity = boundary_word_parity ( s );
    fprintf ( 1, '  Polyomino defined by "%s" has parity %d\n', s, parity );
  end

  return
end

