We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MAX_INCREMENT
1 parent 3a8db91 commit 81d982aCopy full SHA for 81d982a
library/bits/src/commonTest/kotlin/org/kotlincrypto/bitops/bits/CounterUnitTest.kt
@@ -62,6 +62,13 @@ class CounterUnitTest {
62
}
63
64
65
+ @Test
66
+ fun givenIncrementBy_whenIsMaxIncrement_thenDoesNotThrowException() {
67
+ // {Int/Long}.MAX_VALUE % incrementBy == 0
68
+ Counter.Bit32(Counter.Bit32.MAX_INCREMENT)
69
+ Counter.Bit64(Counter.Bit64.MAX_INCREMENT)
70
+ }
71
+
72
@Test
73
fun givenLo_whenNotFactoryIncrementBy_thenThrowsException() {
74
// Would throw if 32 was not a factor of 8...
0 commit comments