github-advanced-security[bot] commented on code in PR #762:
URL: https://github.com/apache/datasketches-java/pull/762#discussion_r3975543229
##########
src/test/java/org/apache/datasketches/common/UtilTest.java:
##########
@@ -241,6 +242,25 @@
assertEquals(out,"zzzzzzzzzzzzPad 30, prepend z:");
}
+ @Test
+ public void checkNumDigits() {
+ for (long n = -1000; n <= 1000; n++) {
+ checkN(n);
+ }
+ for (long n = 1; (n < Long.MAX_VALUE) && (n > 0); n *= 10) {
Review Comment:
## CodeQL / Useless comparison test
Test is always true.
[Show more
details](https://github.com/apache/datasketches-java/security/code-scanning/971)
--
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]