Skip to content

Commit 5023e8a

Browse files
committed
Add algo for BooleanGateslogic and test cases
1 parent e083d42 commit 5023e8a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/java/com/thealgorithms/bitmanipulation/BooleanAlgebraGatesTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
package com.thealgorithms.bitmanipulation;
23

34
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -34,10 +35,7 @@ void testORGate(List<Boolean> inputs, boolean expected) {
3435
}
3536

3637
@ParameterizedTest(name = "NOTGate Test Case {index}: input={0} -> expected={1}")
37-
@CsvSource({
38-
"true, false",
39-
"false, true"
40-
})
38+
@CsvSource({"true, false", "false, true"})
4139
void testNOTGate(boolean input, boolean expected) {
4240
NOTGate gate = new NOTGate();
4341
assertEquals(expected, gate.evaluate(input));

0 commit comments

Comments
 (0)