function coin_streak_test ( )

%*****************************************************************************80
%
%% coin_streak_test() tests coin_streak().
%
%  Licensing:
%
%    This code is distributed under the MIT 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;
  v = coin_uniform ( n );
  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
