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

Commit 154e784

Browse files
authored
Merge branch 'master' into download-msg-fix-juha
2 parents dab66b2 + 6bdba86 commit 154e784

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
@@ -143,13 +143,13 @@ private void printStatistics(Course course, int requestCount, int downloadCount)
143143

144144
int failedCount = (requestCount - downloadCount);
145145
if (failedCount > 0) {
146-
io.println(" from which " + (requestCount - failedCount)
146+
io.println(" of which " + (requestCount - failedCount)
147147
+ " exercises were succesfully downloaded");
148148
io.println(Color.colorString(" and of which " + failedCount + " failed.",
149149
Color.AnsiColor.ANSI_RED));
150150
//TODO we could print the names of the not downloaded exercises here
151151
} else {
152-
io.println(" from which "
152+
io.println(" of which "
153153
+ downloadCount + " exercises were downloaded.");
154154
}
155155
if (!showAll && totalCount != downloadCount) {

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)