Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isCloseTo() shows wrong delta in mismatch description #8

Closed
pniederw opened this issue Aug 26, 2012 · 1 comment
Closed

isCloseTo() shows wrong delta in mismatch description #8

pniederw opened this issue Aug 26, 2012 · 1 comment
Assignees
Labels

Comments

@pniederw
Copy link

For example, the description for assertThat(2.2, closeTo(3.3, 0.5) ends in "<2.2> differed by <0.6>", but should end in "<2.2> differed by <1.1>". That is, unless I'm misinterpreting the intended meaning of the message.

@ghost ghost assigned sf105 Aug 28, 2012
@sf105 sf105 closed this as completed Aug 28, 2012
@sf105
Copy link
Member

sf105 commented Aug 28, 2012

turns out the numbers are correct but misleading (difference from acceptable delta). Fixed the mismatch report

martiner pushed a commit to martiner/hamcrest-text-patterns that referenced this issue Dec 22, 2017
Fixed mismatch reporting on isCloseTo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants