Closed zane closed 5 years ago
Replaces the dummy function foo in metaprob.examples.all-test with a test that explicitly verifies that metaprob.examples.all can be required.
foo
metaprob.examples.all-test
metaprob.examples.all
Fixes #67.
See the discussion in #67.
First run the new test and watch it pass:
clojure -Atest -n metaprob.examples.all-test
Then add a line to metaprob.examples.all that, when evaluated, will trigger an exception. For example:
(define foo (/ 1 0))
Now run the new test again and watch it fail.
I've looked at this and it seems a no brainer. +1 to merge.
What does this do?
Replaces the dummy function
foo
inmetaprob.examples.all-test
with a test that explicitly verifies thatmetaprob.examples.all
can be required.Fixes #67.
Why should we do this?
See the discussion in #67.
How do I test this?
First run the new test and watch it pass:
Then add a line to
metaprob.examples.all
that, when evaluated, will trigger an exception. For example:Now run the new test again and watch it fail.