[
https://issues.apache.org/jira/browse/FLINK-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14045896#comment-14045896
]
ASF GitHub Bot commented on FLINK-888:
--------------------------------------
Github user tobwiens commented on the pull request:
https://github.com/apache/incubator-flink/pull/44#issuecomment-47337619
I want to assert when they are not the same.
And when I use: failNotEquals(java.lang.String message,java.lang.Object
expected,java.lang.Object actual)
It uses Object's equals method.
I could write:
// assert if NOT equal
Assert.assertTrue(!swappedTuple2.f1.equals(fullTuple2.f0)) to make it more
consistent and more obvious?
> Add swap() method to Tuple2
> ---------------------------
>
> Key: FLINK-888
> URL: https://issues.apache.org/jira/browse/FLINK-888
> Project: Flink
> Issue Type: Improvement
> Reporter: GitHub Import
> Assignee: Tobias
> Labels: github-import
> Fix For: pre-apache
>
>
> In line with Scala
> ---------------- Imported from GitHub ----------------
> Url: https://github.com/stratosphere/stratosphere/issues/888
> Created by: [StephanEwen|https://github.com/StephanEwen]
> Labels: enhancement, java api,
> Milestone: Release 0.6 (unplanned)
> Created at: Thu May 29 14:49:49 CEST 2014
> State: open
--
This message was sent by Atlassian JIRA
(v6.2#6252)