[ 
https://issues.apache.org/jira/browse/BEAM-6035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ismaël Mejía updated BEAM-6035:
-------------------------------
    Labels: easyfix starter  (was: easyfix)

> Add beam.testing.util.almost_equal_to
> -------------------------------------
>
>                 Key: BEAM-6035
>                 URL: https://issues.apache.org/jira/browse/BEAM-6035
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core, testing
>            Reporter: Zach Moshe
>            Priority: Minor
>              Labels: easyfix, starter
>
> Similar to Python's unittest module, can we have a 'almost_equal_to()' 
> matcher to allow for comparing floats?
> Suggested definition:
> def almost_equal_to(expected, delta=1e-6):
>    ...
> Does that make sense or a better approach would be to allow overriding of the 
> default comparison of 'sorted_expected' and 'sorted_actual' in 'equal_to()'?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to