khanna-lab / cadre

Other
0 stars 0 forks source link

Note to Self: Incarceration testing #22

Closed khanna7 closed 2 years ago

khanna7 commented 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.

khanna7 commented 2 years ago

Also test the release function

khanna7 commented 2 years ago

Both completed. https://github.com/khanna7/cadre/commit/d630c7187c48d16d0d6c57547dc3b79634197e69