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.
1 parent 0e090ba commit 5558e25Copy full SHA for 5558e25
src/test/java/com/thealgorithms/bitmanipulation/OnesComplementTest.java
@@ -45,12 +45,4 @@ public void testOnesComplement_EmptyString() {
45
// Test empty string scenario
46
assertEquals("", OnesComplement.onesComplement(""));
47
}
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
- }
56
0 commit comments