If I'm not mistaking, Dave won a bid at an auction to have tests written for Tie::Hash::Cannabinol [cpan.org] by Schwern. The results were mentioned during one of the last YAPCs. Maybe you can convince Schwern to do it for one of your modules?:)
This will only work if you're generating random results yourself, obvisouly. But it's such a nice idea... (I use it for filling DBs with test-data thats random, but still allways the same)
From perldoc -f srand:
You can call srand($seed) with the same $seed to reproduce the same sequence from rand(), but this is usually reserved for generating predictable results for testing or debugging
You test... (Score:1)
- type domain (integers bellow a number, strings with a specific size, etc)
Re:You test... (Score:1)
Tie::Hash::Cannabinol (Score:1)
Re:Tie::Hash::Cannabinol (Score:1)
However, I think I'd like to see those tests before that conference, so I guess I'll have to think something up :-)
Re:Tie::Hash::Cannabinol (Score:2)
He also wrote a comment somewhere on use.perl which explained how he came up with them - but I can't find that now.
re: Random Testing (Score:1)
Re: Random Testing (Score:1)
Anyone else?
Whitebox testing (Score:1)
I wrote a journal entry [perl.org] about Test::MockObject that touches this.
srand(1) (Score:1)
From perldoc -f srand: