Closed khanna7 closed 2 years ago
https://github.com/khanna7/cadre/blob/c60fd4ec339f397882a15af4f34760459321b00e/python/mytests/test_person.py#L89
Daniel suggests a test with a large population and setting incarceration probability equal to 0.50, and using assertAmostEqual to see if about 50% are incarcerated.
assertAmostEqual
Also test the release function
Both completed. https://github.com/khanna7/cadre/commit/d630c7187c48d16d0d6c57547dc3b79634197e69
https://github.com/khanna7/cadre/blob/c60fd4ec339f397882a15af4f34760459321b00e/python/mytests/test_person.py#L89
Daniel suggests a test with a large population and setting incarceration probability equal to 0.50, and using
assertAmostEqual
to see if about 50% are incarcerated.