function q8_norm_test ( )

%*****************************************************************************80
%
%% q8_norm_test() tests q8_norm().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 July 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'q8_norm_test()\n' );
  fprintf ( 1, '  q8_norm() computes the norm of a quaternion.\n' );

  for i = 1 : 5
    fprintf ( 1, '\n' );
    q = q8_normal_01 ( );
    label = sprintf ( '  q = q8_normal_01():' );
    q8_transpose_print ( q, label );
    value = q8_norm ( q );
    fprintf ( 1, '  q8_norm(q) = %g\n', value );
  end

  return
end
