function coin_streak_test ( )

%*****************************************************************************80
%
%% COIN_STREAK_TEST tests COIN_STREAK.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    21 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'COIN_STREAK_TEST\n' );
  fprintf ( 1, '  COIN_STREAK computes streaks of H''s or T''s\n' );
  fprintf ( 1, '  in N tosses of a coin.\n' );

  n = 20;
  seed = 123456789;
  v = coin_uniform ( n, seed );
  r8vec_print ( n, v, '  Coin toss results: -1=Tails, +1=Heads' );
  s = coin_streak ( n, v );
  r8vec_print ( n + 1, s, '  Streak list:' );

  return
end