Github user mengxr commented on the pull request: https://github.com/apache/spark/pull/1425#issuecomment-49137261 @dbtsai The assertions with `===` were all tested to work, but I agree it is more robust to allow numerical errors. One downside of this change is that `===` reports the values in comparison when something is wrong but now `almostEquals` only returns true/false. It would be great if we can make the implementation similar to `===`. Btw, Scalatest 2.x has this tolerance feature, where you can use `+-` to indicate a range. We are not using Scalatest 2.x but it is a useful feature.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---