Skip to content

Commit 9f527a9

Browse files
committed
Build Fix
1 parent 7d4200e commit 9f527a9

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/test/java/com/thealgorithms/others/ShorAlgorithmTest.java

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.thealgorithms.others;
22

3-
import org.junit.jupiter.api.Test;
43
import java.math.BigInteger;
4+
import org.junit.jupiter.api.Test;
55
import static org.junit.jupiter.api.Assertions.*;
66

77
public class ShorAlgorithmTest {
@@ -44,20 +44,5 @@ public void testFactorizationOfEvenCompositeNumber() {
4444

4545
assertEquals(number, p.multiply(q), "Factors should multiply to the original number.");
4646
}
47-
48-
@Test
49-
public void testLargeCompositeNumber() {
50-
ShorAlgorithm shor = new ShorAlgorithm();
51-
BigInteger number = new BigInteger("21");
52-
BigInteger[] factors = shor.shorAlgorithm(number);
53-
54-
assertNotNull(factors, "Factors should not be null for composite numbers.");
55-
assertEquals(2, factors.length, "There should be two factors.");
56-
57-
BigInteger p = factors[0];
58-
BigInteger q = factors[1];
59-
60-
assertEquals(number, p.multiply(q), "Factors should multiply to the original number.");
61-
}
6247
}
6348

0 commit comments

Comments
 (0)