Github user mengxr commented on the pull request:

    https://github.com/apache/spark/pull/1425#issuecomment-50045370
  
    @dbtsai As discussed with @srowen , the `%` sign is not helpful because we 
need `0.00000000000001%` in many cases and people never use notations like 
`1e-10%`.
    
    Instead of adding more sugar in testing, how about using `absErr`/`absTol` 
and `relErr`/`relTol`? For example,
    
    ~~~
    assert(a ~== b absErr 0.01)
    assert(a ~== b relTol 1e-5)
    ~~~
    
    I still recommend using `err`/`tol` that switches automatically between 
absolute error and relative error at `1.0`. But it is fine to be explicit.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to