function blend_r_0dn_stretch_test ( )

%*****************************************************************************80
%
%% BLEND_R_0DN_TEST checks for simple errors in the blend coefficients.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    23 October 2008
%
%  Author:
%
%    John Burkardt
%
  nmax = 3;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'BLEND_R_0DN_TEST\n' );
  fprintf ( 1, '  Shift and stretch test to detect simple errors.\n' );
%
%  Set N to 1.
%
  n = 1;
%
%  Test BLEND_R_0DN on shift by 1, stretch by 2.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'Shift and stretch test for BLEND_R_0DN:\n' );
  fprintf ( 1, '\n' );
  r = 0.0;
  x = blend_r_0dn ( r, n, @stretch_r );
  fprintf ( 1, '  %8f  %8f\n', r, x(1) );

  r = 1.0;
  x = blend_r_0dn ( r, n, @stretch_r );
  fprintf ( 1, '  %8f  %8f\n', r, x(1) );

  r = 0.5;
  x = blend_r_0dn ( r, n, @stretch_r );
  fprintf ( 1, '  %8f  %8f\n', r, x(1) );

  return
end
