Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 6bdba86

Browse files
authored
Merge pull request #367 from tmc-cli/minor-fix-mikko
Fix user message
2 parents 861b53f + e9ed85a commit 6bdba86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/fi/helsinki/cs/tmc/cli/command/DownloadExercisesCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ private void printStatistics(Course course, int requestCount, int downloadCount)
142142

143143
int failedCount = (requestCount - downloadCount);
144144
if (failedCount > 0) {
145-
io.println(" from which " + (requestCount - failedCount)
145+
io.println(" of which " + (requestCount - failedCount)
146146
+ " exercises were succesfully downloaded");
147147
io.println(Color.colorString(" and of which " + failedCount + " failed.",
148148
Color.AnsiColor.ANSI_RED));
149149
//TODO we could print the names of the not downloaded exercises here
150150
} else {
151-
io.println(" from which "
151+
io.println(" of which "
152152
+ downloadCount + " exercises were downloaded.");
153153
}
154154
io.println("Use -a/--all to download completed exercises as well.");

src/test/java/fi/helsinki/cs/tmc/cli/command/DownloadExercisesCommandTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public void failsToLoadExercises() throws ParseException {
201201
app.run(args);
202202

203203
io.assertContains("The 'course1' course has 3 exercises");
204-
io.assertContains("from which 2 exercises were succesfully downloaded");
204+
io.assertContains("of which 2 exercises were succesfully downloaded");
205205
io.assertContains("and of which 1 failed.");
206206
}
207207

0 commit comments

Comments
 (0)