Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Probabilistic unit tests?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Steven D'Aprano, post: 5070682"] I don't believe Nick is using unittest to check input data. As I understand it, Nick has a program which generates random values. If his program works correctly, it should generate approximately equal numbers of "male" and "female" values. So he writes a unit test to check that the numbers are roughly equal. This is an appropriate test, although as I already suggested earlier, unit tests are not well suited for non-deterministic testing. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Probabilistic unit tests?
Top