diff options
| author | mo8it <mo8it@proton.me> | 2024-04-11 02:51:02 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-11 02:51:02 +0200 |
| commit | fa1f239a702eb2c0b7e0115e986481156961bbc8 (patch) | |
| tree | 08ac7c8638546f80ac650474dfe4126103a15e54 /tests/integration_tests.rs | |
| parent | 4bb6bda9f6416e30233342e73fc9a8486faa3f98 (diff) | |
Remove "I AM NOT DONE" and the verify mode and add AppState
Diffstat (limited to 'tests/integration_tests.rs')
| -rw-r--r-- | tests/integration_tests.rs | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index f8f4383..51cdefb 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -1,7 +1,6 @@ use assert_cmd::prelude::*; -use glob::glob; use predicates::boolean::PredicateBooleanExt; -use std::{fs::File, io::Read, process::Command}; +use std::process::Command; #[test] fn fails_when_in_wrong_dir() { @@ -138,31 +137,6 @@ fn get_hint_for_single_test() { } #[test] -fn all_exercises_require_confirmation() { - for exercise in glob("exercises/**/*.rs").unwrap() { - let path = exercise.unwrap(); - if path.file_name().unwrap() == "mod.rs" { - continue; - } - let source = { - let mut file = File::open(&path).unwrap(); - let mut s = String::new(); - file.read_to_string(&mut s).unwrap(); - s - }; - source - .matches("// I AM NOT DONE") - .next() - .unwrap_or_else(|| { - panic!( - "There should be an `I AM NOT DONE` annotation in {:?}", - path - ) - }); - } -} - -#[test] fn run_compile_exercise_does_not_prompt() { Command::cargo_bin("rustlings") .unwrap() |
