Factor/NeophyteFAQ

How do you write tests for a vocab that generates random text?

By having tests assert that the result is a string, of the right length, etc.

How about seed-random ?Don't use that word. But you can do this:

1234 <mersenne-twister> [ ... ] with-random

Now a sequence of calls to 'random' will produce the same results every time inside the quotation.

This revision created on Wed, 24 Feb 2010 15:15:16 by metaperl