-anil
--
You received this message because you are subscribed to the Google Groups "ocaml-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ocaml-core+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There are really two suggestions here: one of which is to use
Thread_safe.block_on_async_exn, and the other is to use pa_test, which
I heartily recommend. Set up right, pa_test drives down the overhead
of adding a unit test to your system very low indeed. It's as simple
as just writing
TEST = (* some expression that returns true on success *)
or
TEST_UNIT = (* some expression that raises on error *)
or even
TEST_MODULE = struct (* some module containing tests that should
only execute when running unit tests *)
Writing unit tests is no fun, and dropping the overhead for doing so
to zero is quite helpful in getting people to actually write tests!
To unsubscribe from this group and stop receiving emails from it, send an email to ocaml-core+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "ocaml-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ocaml-core+unsubscribe@googlegroups.com.