File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
src/test/java/com/thealgorithms/others Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 11package com .thealgorithms .others ;
22
3- import org .junit .jupiter .api .Test ;
43import java .math .BigInteger ;
4+ import org .junit .jupiter .api .Test ;
55import static org .junit .jupiter .api .Assertions .*;
66
77public 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
You can’t perform that action at this time.
0 commit comments