Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixes test failures
  • Loading branch information
liancheng committed Mar 12, 2016
commit e7898939af2a8e839099a4f65b2787d60ee12ea7
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public Row call(Person person) throws Exception {
expected.add(RowFactory.create("Michael", 29));
expected.add(RowFactory.create("Yin", 28));

Assert.assertEquals(expected, Arrays.asList(actual));
Assert.assertEquals(expected, actual);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ public void testSampleBy() {
List<Row> actual = sampled.groupBy("key").count().orderBy("key").collectAsList();
Assert.assertEquals(0, actual.get(0).getLong(0));
Assert.assertTrue(0 <= actual.get(0).getLong(1) && actual.get(0).getLong(1) <= 8);
Assert.assertEquals(1, actual.get(0).getLong(0));
Assert.assertTrue(2 <= actual.get(0).getLong(1) && actual.get(1).getLong(1) <= 13);
Assert.assertEquals(1, actual.get(1).getLong(0));
Assert.assertTrue(2 <= actual.get(1).getLong(1) && actual.get(1).getLong(1) <= 13);
}

@Test
Expand Down