Skip to content

Commit

Permalink
Add some docs for make_rand() and TEST_SIMS_SEED
Browse files Browse the repository at this point in the history
  • Loading branch information
schwern committed Jun 28, 2009
1 parent fa34257 commit da0f54a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion lib/Test/Sims.pm
Expand Up @@ -62,7 +62,24 @@ C<<:rand>> all C<<rand_*>> functions. C<<:ALL>> exports everything.
=head2 make_rand()
=head2 TEST_SIMS_SEED
my $code = make_rand $name => \@list;
Creates a subroutine called C<<rand_$name>> and exports it on request.
=head2 Controlling randomness
You can control the random seed used by Test::Sims by setting the
C<TEST_SIMS_SEED> environment variable. This is handy to make test runs
repeatable.
=begin todo
Test::Sims will output the seed used at the end of each test run. If
the test failed it will be visible to the user, otherwise it will be a
TAP comment and only visible if the test is run verbosely.
=end todo
=cut

Expand Down

0 comments on commit da0f54a

Please sign in to comment.