peterlck / hamcrest

Automatically exported from code.google.com/p/hamcrest
0 stars 0 forks source link

Enhance the closeTo matcher to be able to handle BigDecimals, also provide a possibility to compare BigDecimals. #177

Closed GoogleCodeExporter closed 10 years ago

GoogleCodeExporter commented 10 years ago
Would be nice to have the closeTo(double, double) matcher also for BigDecimals. 
Please see the attachment as an example implementation.

Also it would be nice to have a matcher that does the comparision of 
BigDecimals based on the compareTo method. See also the attachment as an 
example implementation.

Original issue reported on code.google.com by mario.ho...@gmail.com on 5 Mar 2012 at 10:27

Attachments: