File tree 1 file changed +4
-4
lines changed
src/test/java/com/thealgorithms/others
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
package com .thealgorithms .others ;
2
2
3
- import java .math .BigInteger ;
4
- import org .junit .jupiter .api .Test ;
5
3
import static org .junit .jupiter .api .Assertions .assertEquals ;
6
4
import static org .junit .jupiter .api .Assertions .assertNotNull ;
7
5
import static org .junit .jupiter .api .Assertions .assertNull ;
8
6
7
+ import java .math .BigInteger ;
8
+ import org .junit .jupiter .api .Test ;
9
+
9
10
public class ShorAlgorithmTest {
10
-
11
11
@ Test
12
12
public void testFactorizationOfEvenNumber () {
13
13
ShorAlgorithm shor = new ShorAlgorithm ();
@@ -16,7 +16,7 @@ public void testFactorizationOfEvenNumber() {
16
16
17
17
assertNotNull (factors , "Factors should not be null for composite numbers." );
18
18
assertEquals (2 , factors .length , "There should be two factors." );
19
-
19
+
20
20
BigInteger p = factors [0 ];
21
21
BigInteger q = factors [1 ];
22
22
You can’t perform that action at this time.
0 commit comments