function i4_to_dvec_test ( )

%*****************************************************************************80
%
%% I4_TO_DVEC_TEST tests I4_TO_DVEC;
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    28 May 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_TO_DVEC_TEST\n' );
  fprintf ( 1, '  I4_TO_DVEC converts an I4 to a DVEC.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '        I4 => DVEC => I4\n' );
  fprintf ( 1, '\n' );

  seed = 123456789;
  [ i1, seed ] = i4_uniform_ab ( -10000, 10000, seed );

  n = 6;
  dvec = i4_to_dvec ( i1, n );;

  i2 = dvec_to_i4 ( n, dvec );

  fprintf ( 1, '  %6d  ', i1 );
  for i = n : -1 : 1
    fprintf ( 1, '%2d', dvec(i) );
  end
  fprintf ( 1, '  %6d\n', i2 );

  return
end