Compare commits

...

8 commits

Author SHA1 Message Date
Alexandr Borodulin beca06bcb9
Merge b1200de75e into 8d0aa11a35 2024-01-24 09:35:27 +11:00
liv 8d0aa11a35
Merge pull request #1826 from rust-lang/all-contributors/add-gerases
docs: add gerases as a contributor for content
2024-01-15 14:52:04 +00:00
allcontributors[bot] e2674498c6
docs: update .all-contributorsrc [skip ci] 2024-01-15 14:51:48 +00:00
allcontributors[bot] 3200581d4d
docs: update AUTHORS.md [skip ci] 2024-01-15 14:51:47 +00:00
liv 6afc4840b4
Merge pull request #1819 from gerases/grammar-fix
Correct for more standard English
2024-01-15 14:51:31 +00:00
Sergei Gerasenko 93aef73eb5 Correct for more standard English 2024-01-09 10:17:03 -06:00
Aleksandr Borodulin b1200de75e Fix tests 2023-10-04 15:43:25 +03:00
Aleksandr Borodulin 370219e1d3 Add message if run next success 2023-10-04 15:28:58 +03:00
5 changed files with 19 additions and 2 deletions

View file

@ -2550,6 +2550,15 @@
"contributions": [
"content"
]
},
{
"login": "gerases",
"name": "gerases",
"avatar_url": "https://avatars.githubusercontent.com/u/8953623?v=4",
"profile": "https://github.com/gerases",
"contributions": [
"content"
]
}
],
"contributorsPerLine": 8,

View file

@ -360,6 +360,9 @@ authors.
<td align="center" valign="top" width="12.5%"><a href="https://github.com/neuschaefer"><img src="https://avatars.githubusercontent.com/u/1021512?v=4?s=100" width="100px;" alt="J. Neuschäfer"/><br /><sub><b>J. Neuschäfer</b></sub></a><br /><a href="https://github.com/rust-lang/rustlings/commits?author=neuschaefer" title="Code">💻</a></td>
<td align="center" valign="top" width="12.5%"><a href="https://scooterhacking.org"><img src="https://avatars.githubusercontent.com/u/58905488?v=4?s=100" width="100px;" alt="Bastian Pedersen"/><br /><sub><b>Bastian Pedersen</b></sub></a><br /><a href="#content-bastianpedersen" title="Content">🖋</a></td>
</tr>
<tr>
<td align="center" valign="top" width="12.5%"><a href="https://github.com/gerases"><img src="https://avatars.githubusercontent.com/u/8953623?v=4?s=100" width="100px;" alt="gerases"/><br /><sub><b>gerases</b></sub></a><br /><a href="#content-gerases" title="Content">🖋</a></td>
</tr>
</tbody>
</table>

View file

@ -36,7 +36,7 @@ fn build_scores_table(results: String) -> HashMap<String, Team> {
let team_2_score: u8 = v[3].parse().unwrap();
// TODO: Populate the scores table with details extracted from the
// current line. Keep in mind that goals scored by team_1
// will be the number of goals conceded from team_2, and similarly
// will be the number of goals conceded by team_2, and similarly
// goals scored by team_2 will be the number of goals conceded by
// team_1.
}

View file

@ -50,6 +50,11 @@ enum RunMode {
// Compile and run the resulting test harness of the given Exercise
pub fn test(exercise: &Exercise, verbose: bool) -> Result<(), ()> {
compile_and_test(exercise, RunMode::NonInteractive, verbose, false)?;
println!(
"Exercise {} is done. Remove {} line to go to the next exercise.",
style(exercise).bold(),
style("`I AM NOT DONE`").bold()
);
Ok(())
}

View file

@ -189,7 +189,7 @@ fn run_test_exercise_does_not_prompt() {
.current_dir("tests/fixture/state")
.assert()
.code(0)
.stdout(predicates::str::contains("I AM NOT DONE").not());
.stdout(predicates::str::contains("Exercise pending_test_exercise.rs is done. Remove `I AM NOT DONE` line to go to the next exercise."));
}
#[test]