github-advanced-security[bot] commented on code in PR #762:
URL: https://github.com/apache/datasketches-java/pull/762#discussion_r4021258454
##########
src/test/java/org/apache/datasketches/common/UtilTest.java:
##########
@@ -241,6 +242,25 @@
assertEquals(out,"zzzzzzzzzzzzPad 30, prepend z:");
}
+ /**
+ * Check all the transition points where the number of decimal characters
change.
+ */
+ @Test
+ public void checkNumDigits() {
+ for (long n = 1; n > 0; n *= 10) { //n goes negative on rollover, which
halts the loop
Review Comment:
## CodeQL / Useless comparison test
Test is always true.
[Show more
details](https://github.com/apache/datasketches-java/security/code-scanning/973)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]