Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
private BufferedReader reader;
@Before
public void z_setUpBufferedReader() throws IOException {
reader = Files.newBufferedReader(
Paths.get("SonnetI.txt"), StandardCharsets.UTF_8);
}
@After
public void z_closeBufferedReader() throws IOException {
reader.close();
}
}
//BEGINREMOVE
/*
* Procedure for deriving exercise file from answers.
* - Open a shell and change do the LambdaLab/test/solutions directory.
* - Run the "cleanit" perl script from within this directory.
* - This should generate the LambdaLab/test/exercises/Exercises.java file automatically.
* - Make sure the only files open in the project are (unsolved!) Exercises.java and
* SonnetI.txt, then run clean, and close the NB project.
*/
//ENDREMOVE