Skip to content

Commit

Permalink
Update core/src/test/java/tech/tablesaw/aggregate/AggregateFunctionsT…
Browse files Browse the repository at this point in the history
…est.java

Co-authored-by: Ben McCann <[email protected]>
  • Loading branch information
ccleva and benmccann authored Jan 3, 2025
1 parent fff9629 commit eb7837c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,10 @@ void testMultipleColumnTypes() {
Table table = Table.create("test", booleanColumn, numberColumn);
Table summary = table.summarize(booleanColumn, numberColumn, countTrue, stdDev).by(stringColumn);

assertEquals(2.0, summary.doubleColumn(1).get(0), 1e-6, "Wrong summary");
assertEquals(0.0, summary.doubleColumn(1).get(1), 1e-6, "Wrong summary");
assertEquals(Math.sqrt(2), summary.doubleColumn(2).get(0), 1e-6, "Wrong summary");
assertEquals(Math.sqrt(2), summary.doubleColumn(2).get(1), 1e-6, "Wrong summary");
assertEquals(2.0, summary.doubleColumn(1).get(0), 1e-6);
assertEquals(0.0, summary.doubleColumn(1).get(1), 1e-6);
assertEquals(Math.sqrt(2), summary.doubleColumn(2).get(0), 1e-6);
assertEquals(Math.sqrt(2), summary.doubleColumn(2).get(1), 1e-6);
}

@Test
Expand Down

0 comments on commit eb7837c

Please sign in to comment.