beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sarah Walters (JIRA)" <>
Subject [jira] [Commented] (BEAM-2970) Add comparator function to equal_to
Date Thu, 21 Sep 2017 02:49:00 GMT


Sarah Walters commented on BEAM-2970:

Spoke with robertwb over email and decided that a contains_in_any_order function is a more
appropriate way to address this issue.

> Add comparator function to equal_to
> -----------------------------------
>                 Key: BEAM-2970
>                 URL:
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Sarah Walters
>            Assignee: Ahmet Altay
>            Priority: Minor
> The equal_to function provided by testing/ (
assumes that the actual and expected lists can be sorted using Python's sorted method (which
relies on the < operator) and compared using the == operator.
> If this isn't the case, equal_to sometimes reports False incorrectly, when the expected
and actual lists are in different orders.
> Add a comparator function to equal_to in order to allow callers to define a total order.

This message was sent by Atlassian JIRA

View raw message