Commit 3f6ff061 authored by Alexander's avatar Alexander
Browse files

Improve CaseCreator

parent c1d1f8c5
......@@ -16,7 +16,7 @@ public class CaseCreator {
private final int nCountries = 20;
private final int nSports = 20;
private final int nAthletes = 2000;
private final int nAthletes = 21;
private final int nErrors = 100;
......@@ -32,7 +32,7 @@ public class CaseCreator {
private void createTest() {
final RandomPicker randomPicker = new RandomPicker(random);
System.out.println("Creating input...");
System.out.printf("Creating input for seed %d...%n", rgenseed);
testPairFile = new StringBuilder();
Terminal.IN_TEST.clear();
Terminal.OUT_TEST.clear();
......@@ -153,7 +153,10 @@ public class CaseCreator {
}
Terminal.IN_TEST.add("quit");
long startTime = System.nanoTime();
testedMethod.run();
long endTime = System.nanoTime();
System.out.println(String.format("Program run in %f ms.", (endTime - startTime) / 1000000.0));
for (TestPair testPair : testPairs) {
testPairFile.append("> ");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment