-
IntelliJ config files adjusted for ETH judge (Runtime 1.6)
-
Easy setup: just unpack your
input.zip
andoutput.zip
archives fromcadmo.ethz.ch
in thetestCases
folder and you're good to go -
Structure for test files: pre-written JUnit tests for given
.in
and.out
testcases -
Easy-to-use interface consisting of often used code (see
Main.java
)
test.java
: Sample JUnit test for test files sample.in
and sample.out
. Repeat this for every pair of test files.
@Test
public void testSample() throws FileNotFoundException {
String inPath = "testCases/sample.in";
String outPath = "testCases/sample.out";
init(outPath);
Main.read_and_solve(
new FileInputStream(inPath),
new PrintStream(out)
);
assertEquals(expected, out.toString().replace("\r", ""));
}