Skip to content

Commit 5558e25

Browse files
Added ones complement test
1 parent 0e090ba commit 5558e25

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,4 @@ public void testOnesComplement_EmptyString() {
4545
// Test empty string scenario
4646
assertEquals("", OnesComplement.onesComplement(""));
4747
}
48-
49-
@Test
50-
public void testOnesComplement_InvalidInput() {
51-
// Test invalid binary strings with additional non-binary characters
52-
assertThrows(IllegalArgumentException.class, () -> OnesComplement.onesComplement("1020"));
53-
assertThrows(IllegalArgumentException.class, () -> OnesComplement.onesComplement("abc"));
54-
assertThrows(IllegalArgumentException.class, () -> OnesComplement.onesComplement("12"));
55-
}
5648
}

0 commit comments

Comments
 (0)