Fix a division method mistake (#4488)
This commit is contained in:
parent
3b603b4293
commit
b24dfc8976
|
@ -38,7 +38,7 @@ public class UnsignedArithmeticUnitTest {
|
||||||
assertEquals(1, Integer.divideUnsigned(negative, positive));
|
assertEquals(1, Integer.divideUnsigned(negative, positive));
|
||||||
|
|
||||||
assertEquals(-1, negative % positive);
|
assertEquals(-1, negative % positive);
|
||||||
assertEquals(1, Integer.divideUnsigned(negative, positive));
|
assertEquals(1, Integer.remainderUnsigned(negative, positive));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue