[
https://issues.apache.org/jira/browse/BEAM-2970?focusedWorklogId=99703&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-99703
]
ASF GitHub Bot logged work on BEAM-2970:
----------------------------------------
Author: ASF GitHub Bot
Created on: 08/May/18 20:23
Start Date: 08/May/18 20:23
Worklog Time Spent: 10m
Work Description: chamikaramj commented on issue #3878: [BEAM-2970] Add
contains_in_any_order matcher
URL: https://github.com/apache/beam/pull/3878#issuecomment-387530561
@sarahwalters I'll close this PR for now since there hasn't been much
activity for over six months. Please reopen if needed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 99703)
Time Spent: 10m
Remaining Estimate: 0h
> Add comparator function to equal_to
> -----------------------------------
>
> Key: BEAM-2970
> URL: https://issues.apache.org/jira/browse/BEAM-2970
> Project: Beam
> Issue Type: Improvement
> Components: sdk-py-core
> Reporter: Sarah Walters
> Assignee: Ahmet Altay
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The equal_to function provided by testing/util.py
> (https://github.com/apache/beam/blob/master/sdks/python/apache_beam/testing/util.py#L54)
> 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
(v7.6.3#76005)