seancorfield
released this
21 Dec 01:08
·
30 commits
to clean-2-1-10
since this release
This is a maintenance release of Expectations that add two new helper functions for expectations:
approximately
--(approximately 42.0)
returns a predicate that will test if its argument is "close" to42.0
; by default, that closeness is within0.001
but you can callapproximately
with two arguments to provide a different delta value.functionally
--(functionally f1 f2)
returns a predicate that will test if(f1 arg)
is equal to(f2 arg)
; you can optionally provide a third argument that can be invoked with the two different results and should return a string explaining how/why they are different (the default is to just say"not functionally equivalent"
).
In addition, a number of bugs in ClojureScript support were fixed.