Re: Testing a class which utilizes randomness

Ron Jeffries <[email protected]> Fri, 4 Apr 2014 12:50:36 -0400
Newsgroups gmane.comp.programming.test-driven-development
Message-ID <[email protected]>
All …

On Apr 4, 2014, at 12:23 PM, Mark Levison <[email protected]> wrote:

> Desirable? - by definition - randomness can and should occasionally duplicate something. Testing a random number generator is very hard. 


Don’t test the RNG. Test the string store.

Ron Jeffries
www.XProgramming.com
You never know what is enough unless you know what is more than enough. -- William Blake