Currently, tests return a test_result = (unit, unit printer) result. It's a bit annoying if you have many things to test, since you have to manually plumb the failures around.
This patch removes test_result, so that tests return unit. It's much easier to test a load of properties this way (see the test_uunf example). Functions like check_eq now raise an exception to indicate failure.
Currently, tests return a
test_result = (unit, unit printer) result
. It's a bit annoying if you have many things to test, since you have to manually plumb the failures around.This patch removes test_result, so that tests return unit. It's much easier to test a load of properties this way (see the test_uunf example). Functions like
check_eq
now raise an exception to indicate failure.