function vector_lex_unrank_test ( )

%*****************************************************************************80
%
%% vector_lex_unrank_test() tests vector_lex_unrank().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 October 2022
%
%  Author:
%
%    John Burkardt
%
  d = 3;
  b = 3;
  more = false;
  fprintf ( 1, '\n' );
  fprintf ( 1, 'vector_lex_unrank_test():\n' );
  fprintf ( 1, '  vector_lex_unrank() unranks an integer vector of length D\n' );
  fprintf ( 1, '  with entries between 1 and B.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  The dimension d = %d\n', d );
  fprintf ( 1, '  The base b =      %d\n', b );
  fprintf ( 1, '\n' );
  
  for rank = 1 : b^d

    a = vector_lex_unrank ( d, b, rank );
    fprintf ( 1, '  %d:  ', rank );
    disp ( a );
 
  end

  return
end
