mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 23:15:17 +08:00
Add IsEven Algorithm (#4301)
Co-authored-by: BamaCharanChhandogi <b.c.chhandogi@gmailcom>
This commit is contained in:

committed by
GitHub

parent
251157059c
commit
1ef700e850
@ -0,0 +1,14 @@
|
||||
package com.thealgorithms.bitmanipulation;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class IsEvenTest {
|
||||
@Test
|
||||
void testIsEven() {
|
||||
assertEquals(true, IsEven.isEven(2));
|
||||
assertEquals(true, IsEven.isEven(-12));
|
||||
assertEquals(false, IsEven.isEven(21));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user