Skip to content

Commit d888fee

Browse files
committed
Update MainTest
1 parent 799b0e9 commit d888fee

File tree

1 file changed

+3
-3
lines changed
  • tmc-langs-cli/src/test/java/fi/helsinki/cs/tmc/langs/cli

1 file changed

+3
-3
lines changed

tmc-langs-cli/src/test/java/fi/helsinki/cs/tmc/langs/cli/MainTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void checkAssertion() throws Exception {
122122
@Test
123123
public void testScanExercise() throws NoLanguagePluginFoundException {
124124
final String exercisePath = getTargetPath("arith_funcs");
125-
final String outputPath = exercisePath + "/checkstyle.txt";
125+
final String outputPath = exercisePath + File.separator + "checkstyle.txt";
126126

127127
Mockito.when(executor.scanExercise(Paths.get(exercisePath), "arith_funcs"))
128128
.thenReturn(
@@ -153,7 +153,7 @@ public void checkAssertion() throws Exception {
153153
@Test
154154
public void testRunTests() {
155155
final String exercisePath = getTargetPath("arith_funcs");
156-
final String outputPath = exercisePath + "/results.txt";
156+
final String outputPath = exercisePath + File.separator + "results.txt";
157157
String[] args = {"run-tests", EXERCISE_PATH, exercisePath, OUTPUT_PATH, outputPath};
158158

159159
exit.expectSystemExitWithStatus(0);
@@ -176,7 +176,7 @@ public void checkAssertion() throws Exception {
176176
@Test
177177
public void testRunCheckCodeStyle() {
178178
final String exercisePath = getTargetPath("arith_funcs");
179-
final String outputPath = exercisePath + "/exercises.txt";
179+
final String outputPath = exercisePath + File.separator + "exercises.txt";
180180
String[] args = {
181181
"checkstyle", EXERCISE_PATH, exercisePath, OUTPUT_PATH, outputPath, LOCALE, "en"
182182
};

0 commit comments

Comments
 (0)