crunch-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwi...@apache.org
Subject [1/2] git commit: Trivial Scrunch test fix for Hadoop2
Date Thu, 12 Dec 2013 03:29:29 GMT
Updated Branches:
  refs/heads/master 6e6234138 -> e5a360512


Trivial Scrunch test fix for Hadoop2


Project: http://git-wip-us.apache.org/repos/asf/crunch/repo
Commit: http://git-wip-us.apache.org/repos/asf/crunch/commit/8932f2a2
Tree: http://git-wip-us.apache.org/repos/asf/crunch/tree/8932f2a2
Diff: http://git-wip-us.apache.org/repos/asf/crunch/diff/8932f2a2

Branch: refs/heads/master
Commit: 8932f2a2022d05ad913bf0d0fcebed27e945ea31
Parents: 6e62341
Author: Josh Wills <jwills@apache.org>
Authored: Wed Dec 11 14:37:54 2013 -0800
Committer: Josh Wills <jwills@apache.org>
Committed: Wed Dec 11 19:26:39 2013 -0800

----------------------------------------------------------------------
 .../src/it/scala/org/apache/crunch/scrunch/DeepCopyTest.scala  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/crunch/blob/8932f2a2/crunch-scrunch/src/it/scala/org/apache/crunch/scrunch/DeepCopyTest.scala
----------------------------------------------------------------------
diff --git a/crunch-scrunch/src/it/scala/org/apache/crunch/scrunch/DeepCopyTest.scala b/crunch-scrunch/src/it/scala/org/apache/crunch/scrunch/DeepCopyTest.scala
index 441a9c6..f30965a 100644
--- a/crunch-scrunch/src/it/scala/org/apache/crunch/scrunch/DeepCopyTest.scala
+++ b/crunch-scrunch/src/it/scala/org/apache/crunch/scrunch/DeepCopyTest.scala
@@ -59,11 +59,11 @@ class DeepCopyTest extends CrunchSuite {
       .toList
 
     // Expected results vs. actual
-    val e12 = Seq((Rec2(1, "a", 0.4), Rec3("a", 4)), (Rec2(1, "a", 0.5), Rec3("a", 4)), (Rec2(1,
"b", 0.6), Rec3("b", 5)),
+    val e12 = Set((Rec2(1, "a", 0.4), Rec3("a", 4)), (Rec2(1, "a", 0.5), Rec3("a", 4)), (Rec2(1,
"b", 0.6), Rec3("b", 5)),
         (Rec2(1, "b", 0.7), Rec3("b", 5)))
-    val e22 = Seq((Rec2(2, "c", 9.9),Rec3("c", 6)))
+    val e22 = Set((Rec2(2, "c", 9.9),Rec3("c", 6)))
     assertEquals(2, res.size)
-    assertEquals(res.map(_._2.toList), Seq(e12, e22))
+    assertEquals(res.map(_._2.toSet), Seq(e12, e22))
     pipe.done()
   }
 


Mime
View raw message