loquisgon commented on a change in pull request #10856:
URL: https://github.com/apache/druid/pull/10856#discussion_r573878820



##########
File path: 
core/src/test/java/org/apache/druid/java/util/common/GranularityTest.java
##########
@@ -809,6 +811,20 @@ public void testIncrementOverSpringForward()
     );
   }
 
+  @Test
+  public void testIsFinerComparator()
+  {
+    Assert.assertTrue(Granularity.IS_FINER_THAN.compare(NONE, SECOND) < 0);
+    Assert.assertTrue(Granularity.IS_FINER_THAN.compare(SECOND, NONE) > 0);
+    Assert.assertTrue(Granularity.IS_FINER_THAN.compare(NONE, MINUTE) < 0);
+    Assert.assertTrue(Granularity.IS_FINER_THAN.compare(MINUTE, NONE) > 0);
+    Assert.assertTrue(Granularity.IS_FINER_THAN.compare(DAY, MONTH) < 0);
+    Granularity day = DAY;

Review comment:
       I had to create a variable because the comparator complained that it was 
being used against itself...




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to