function asm_triangle_test ( )

%*****************************************************************************80
%
%% asm_triangle_test() tests asm_triangle().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 April 2009
%
%  Author:
%
%    John Burkardt
%
  max_n = 7;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'asm_triangle_test():\n' );
  fprintf ( 1, '  asm_triangle() returns a row of the alternating sign\n' );
  fprintf ( 1, '  matrix triangle.\n' );
  fprintf ( 1, '\n' );

  for n = 0 : max_n
    a = asm_triangle ( n );
    fprintf ( 1, '  %2d', n );
    for i = 1 : n+1
      fprintf ( 1, '  %8d', a(i) );
    end
    fprintf ( 1, '\n' );
  end

  return
end
