Commit 87b2ab0e authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

improved tests

parent acd8d750
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ import com.sun.tools.javac.util.List;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    // constants
@@ -33,9 +34,11 @@ public class Main {

        // A more complicated test.
        System.out.println("\n\n\nLonger test:");
        if (args.length<1)
            throw new Error("No argument supplied");
        final BigInteger two = new BigInteger("2");
        final BigInteger modulus = new BigInteger(1,args[0].getBytes()); // makes up a modulus based on the supplied argument
        BigInteger base = two;
        BigInteger modulus = new BigInteger("1911337"); // 10007 * 191
        ArrayList<String> longList = new ArrayList<>(10000);
        for (int ii=0; ii<10000; ii++) {
            longList.add(base.toString());