
import factoring.Shanks;
import org.junit.Test;
import utils.RootFinder;
import static org.junit.Assert.*;
import java.math.BigDecimal;
import java.math.BigInteger;

public class ShanksTest {

    @Test
    public void test1(){
        BigInteger N = new BigInteger("30325000");
            Shanks sh = new Shanks(N, 8);
        BigInteger s = sh.factor();
        System.out.println("Factor of 30325000 Shanks Algo is "+s);

    }

    @Test
    public void test2(){
        BigInteger N = new BigInteger("3546413");
        Shanks sh = new Shanks(N, 8);
        BigInteger s = sh.factor();
        System.out.println("Factor of 3546413 using Shanks Algo is "+s);

    }


    @Test
    public void test3(){
        BigInteger N = new BigInteger("11675231167");
        Shanks sh = new Shanks(N, 8);
        BigInteger s = sh.factor();
        System.out.println("Factor of 11675231167 using Shanks Algo is "+s);

    }
}

@@ -67,16 +67,17 @@
 Finder;%0A
+%0A
 import s
@@ -102,16 +102,17 @@
 sert.*;%0A
+%0A
 import j
@@ -222,18 +222,21 @@
  test1()
+ 
 %7B%0A
+//
         
@@ -274,28 +274,26 @@
 30325000%22);%0A
-    
+//
         Shan
@@ -310,32 +310,34 @@
 w Shanks(N, 8);%0A
+//
         BigInteg
@@ -348,32 +348,34 @@
  = sh.factor();%0A
+//
         System.o
@@ -413,33 +413,35 @@
 Shanks Algo is %22
-+
+ + 
 s);%0A%0A    %7D%0A%0A    
@@ -469,18 +469,21 @@
  test2()
+ 
 %7B%0A
+//
         
@@ -520,24 +520,26 @@
 %223546413%22);%0A
+//
         Shan
@@ -556,32 +556,34 @@
 w Shanks(N, 8);%0A
+//
         BigInteg
@@ -594,32 +594,34 @@
  = sh.factor();%0A
+//
         System.o
@@ -719,18 +719,21 @@
  test3()
+ 
 %7B%0A
+//
         
@@ -778,16 +778,18 @@
 1167%22);%0A
+//
         
@@ -818,16 +818,18 @@
 (N, 8);%0A
+//
         
@@ -856,16 +856,18 @@
 ctor();%0A
+//
         

comment out failing tests for unfinsihed implementations