diff options
| author | Roberto Vidal <vidal.roberto.j@gmail.com> | 2019-11-12 11:35:40 +0100 |
|---|---|---|
| committer | Roberto Vidal <vidal.roberto.j@gmail.com> | 2019-11-12 11:35:40 +0100 |
| commit | 4b26546589f7d2b50455429482cf1f386ceae8b3 (patch) | |
| tree | 66ff06c0bf1fb6dce88485212148a2c5b2e167d8 /tests/fixture/state | |
| parent | bc56788fe637f6ff16c1e445a230b01544d2d9cf (diff) | |
fix(run): makes `run` never prompt
`watch` and `verify` do prompt the user to actively move to the
next exercise. This change fixes `run` to never prompt. Previously
it was inconsistent between "test" and "compile" exercises.
BREAKING CHANGE: we again change the behavior of the `run` command
Diffstat (limited to 'tests/fixture/state')
| -rw-r--r-- | tests/fixture/state/finished_exercise.rs | 5 | ||||
| -rw-r--r-- | tests/fixture/state/info.toml | 11 | ||||
| -rw-r--r-- | tests/fixture/state/pending_test_exercise.rs | 4 |
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/fixture/state/finished_exercise.rs b/tests/fixture/state/finished_exercise.rs index e69de29..016b827 100644 --- a/tests/fixture/state/finished_exercise.rs +++ b/tests/fixture/state/finished_exercise.rs @@ -0,0 +1,5 @@ +// fake_exercise + +fn main() { + +} diff --git a/tests/fixture/state/info.toml b/tests/fixture/state/info.toml new file mode 100644 index 0000000..7bfc697 --- /dev/null +++ b/tests/fixture/state/info.toml @@ -0,0 +1,11 @@ +[[exercises]] +name = "pending_exercise" +path = "pending_exercise.rs" +mode = "compile" +hint = """""" + +[[exercises]] +name = "pending_test_exercise" +path = "pending_test_exercise.rs" +mode = "test" +hint = """""" diff --git a/tests/fixture/state/pending_test_exercise.rs b/tests/fixture/state/pending_test_exercise.rs new file mode 100644 index 0000000..8756f02 --- /dev/null +++ b/tests/fixture/state/pending_test_exercise.rs @@ -0,0 +1,4 @@ +// I AM NOT DONE + +#[test] +fn it_works() {} |
