Skip to content

Release 2.1.10

Latest
Compare
Choose a tag to compare
@seancorfield 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" to 42.0; by default, that closeness is within 0.001 but you can call approximately 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.