function perm1_break_count_test ( )

%*****************************************************************************80
%
%% perm1_break_count_test() tests perm1_break_count().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 June 2015
%
%  Author:
%
%    John Burkardt
%
  n = 6;
  p = [ 4, 5, 2, 1, 6, 3 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'perm1_break_count_test():\n' );
  fprintf ( 1, '  perm1_break_count() counts the breaks in a permutation.\n' );
 
  perm1_print ( n, p, '  The permutation:' );
 
  break_count = perm1_break_count ( n, p );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  The number of breaks is %d\n', break_count );

  return
end
