File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/java/com/thealgorithms/others Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11package com .thealgorithms .others ;
22
3- import java .math .BigInteger ;
4- import org .junit .jupiter .api .Test ;
53import static org .junit .jupiter .api .Assertions .assertEquals ;
64import static org .junit .jupiter .api .Assertions .assertNotNull ;
75import static org .junit .jupiter .api .Assertions .assertNull ;
86
7+ import java .math .BigInteger ;
8+ import org .junit .jupiter .api .Test ;
9+
910public class ShorAlgorithmTest {
10-
1111 @ Test
1212 public void testFactorizationOfEvenNumber () {
1313 ShorAlgorithm shor = new ShorAlgorithm ();
@@ -16,7 +16,7 @@ public void testFactorizationOfEvenNumber() {
1616
1717 assertNotNull (factors , "Factors should not be null for composite numbers." );
1818 assertEquals (2 , factors .length , "There should be two factors." );
19-
19+
2020 BigInteger p = factors [0 ];
2121 BigInteger q = factors [1 ];
2222
You can’t perform that action at this time.
0 commit comments