Issue 20 in google-js-test: Add an isNear matcher

3 views
Skip to first unread message

google-...@googlecode.com

unread,
Feb 1, 2012, 10:11:20 PM2/1/12
to google-...@googlegroups.com
Status: Accepted
Owner: jaco...@google.com
Labels: Type-Enhancement Priority-Medium

New issue 20 by jaco...@google.com: Add an isNear matcher
http://code.google.com/p/google-js-test/issues/detail?id=20

For example:

expectThat(17.75, isNear(17.5, 0.25)); // Passes
expectThat(17.25, isNear(17.5, 0.25)); // Passes
expectThat(17.0, isNear(17.5, 0.25)); // Fails
expectThat("taco", isNear(17.5, 0.25)); // Fails

google-...@googlecode.com

unread,
Feb 1, 2012, 10:19:25 PM2/1/12
to google-...@googlegroups.com
Updates:
Status: WontFix

Comment #1 on issue 20 by jaco...@google.com: Add an isNear matcher
http://code.google.com/p/google-js-test/issues/detail?id=20

Stupid me: I forgot we already have isNearNumber.

Reply all
Reply to author
Forward
0 new messages