function count_colours_test ( )

%*****************************************************************************80
%
%% count_colours_test() tests count_colours().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    16 February 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'count_colours_test():\n' );
  fprintf ( 1, '  count_colours() counts the squares of each colour\n' );
  fprintf ( 1, '  in a C-coloured rectangle.' )

  m = 13;
  n = 19;
  C = 5;

  counts = count_colours ( m, n, C );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  counts:\n' );
  disp ( counts );
  fprintf ( 1, '  expected:\n' );
  fprintf ( 1, '    49, 49, 50, 50, 49\n' );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'count_colours_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

