Skip to content
RED SAG Skills
hard20 pts · first answer countstest-automationunit-testingtest-doubles

Testing code that uses randomness

assignReviewer() picks a random reviewer using Math.random(). Tests of its "never assign the author" rule fail now and then. What is the best way to test it?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions