Timeline for How to test this getRandom() method? [duplicate]
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 29, 2017 at 16:45 | comment | added | Bart van Ingen Schenau | @dagnelies, All the considerations for testing randomness apply, except that you don't expect an equal probability for each of the outcomes. | |
| Sep 29, 2017 at 16:44 | history | closed | gnat amon Greg Burghardt Christophe Bart van Ingen Schenau | Duplicate of How should I test randomness? | |
| Sep 29, 2017 at 15:55 | comment | added | dagnelies | @amon: IMHO mocking the randomness source is useless in this case. | |
| Sep 29, 2017 at 15:49 | comment | added | amon | @dagnelies The duplicate also discusses how to test algorithms that involve randomness (e.g. by mocking the randomness source). That seems to fit here. | |
| Sep 29, 2017 at 15:42 | answer | added | dagnelies | timeline score: -2 | |
| Sep 29, 2017 at 15:38 | comment | added | dagnelies | @gnat ...It's similar, yet different. It's not just testing randomness, but more ensuring that the weight probability holds. | |
| Sep 29, 2017 at 13:02 | review | Close votes | |||
| S Sep 29, 2017 at 16:51 | |||||
| Sep 29, 2017 at 12:47 | review | First posts | |||
| S Sep 29, 2017 at 16:51 | |||||
| Sep 29, 2017 at 12:46 | history | asked | rocky | CC BY-SA 3.0 |