Matt Lebl
01e7f27aa6
refactor: change from match to if for NO_EMOJI
2021-03-20 11:53:40 -07:00
Matt Lebl
8d62a99637
feat: Replace emojis when NO_EMOJI env variable present
2021-03-19 02:16:07 -07:00
circumspect
833df0b8b3
chore: fix typo
...
Co-authored-by: Chenkail <40770208+Chenkail@users.noreply.github.com>
2021-03-12 15:26:57 +01:00
Abdou Seck
0b9220c1fc
Add looks_done method to Exercise to expose a resolution state
2021-01-08 13:21:00 -05:00
Roberto Vidal
5643ef05bc
fix: more unique temp_file
2020-10-30 14:39:28 +01:00
Alexx Roche
c03e1e6c6c
chore: fixed test name
2020-09-27 21:57:51 +02:00
Étienne Barrié
81f8c2f83c
chore: Run cargo fmt
2020-08-10 10:42:54 -04:00
mokou
55a9284665
chore: Move from master branch to main branch
2020-06-14 14:48:51 +02:00
Abdou Seck
8ad5f9bf53
feat: Add a --nocapture option to display test harnesses' outputs
...
This new feature can be accessed by invoking rustlings with --nocapture.
Both unit and integration tests added.
closes #262
BREAKING CHANGES:
The following function take a new boolean argument:
* `run`
* `verify`
* `test`
* `compile_and_test`
2020-06-04 11:18:26 -04:00
Rohan Jain
3ab084a421
fix(run): compile clippy exercise files
...
Additionally to running clippy, also compile the exercise file so that
`rustling run clippy1` works after a successful completion of the
exercise.
closes #291
Signed-off-by: Rohan Jain <crodjer@gmail.com>
2020-04-11 08:58:23 +02:00
Mario Reder
1e2fd9c92f
feat: Add clippy lints
...
- adds a new 'clippy' category for exercises
- clippy exercises should throw no warnings
- install script now also installs clippy
is related to https://github.com/rust-lang/rust-clippy/issues/2604
2020-02-26 14:07:07 +01:00
Roberto Vidal
43dc31193a
refactor: exercise evaluation
...
Exercise evaluation (compilation + execution) now uses Results
Success/failure messages are standardized
2020-02-20 20:27:05 +01:00
marisa
48c35bcfbc
fix tests
2019-11-11 17:28:19 +01:00
marisa
ec2d4bd3ee
Merge branch 'master' into refactor-hints
2019-11-11 17:21:06 +01:00
marisa
9bdb0a12e4
feat: Refactor hint system
...
Hints are now accessible using the CLI subcommand `rustlings hint
<exercise name`.
BREAKING CHANGE: This fundamentally changes the way people interact with exercises.
2019-11-11 16:51:38 +01:00
Roberto Vidal
2cdd61294f
feat: improve `watch` execution mode
...
The `watch` command now requires user action to move to the next
exercise.
BREAKING CHANGE: this changes the behavior of `watch`.
2019-11-11 16:23:35 +01:00
marisa
627cdc07d0
feat: Index exercises by name
...
BREAKING CHANGE: This changes the way you use `rustlings run` by now
requiring an abridged form of the previous filename, e.g:
`rustlings run exercises/if/if1.rs` becomes
`rustlings run if1`
2019-11-11 15:46:32 +01:00
Eddy Petrisor
ca6bf966dd
Cargo fmt the rustlings application code
...
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-22 14:50:23 +03:00
liv
35c3d0b3fc
Revert --nocapture flag
...
This closes #149 and #152
2019-05-07 12:31:02 +02:00
liv
f2c48cfac5
fix the --nocapture functionality
2019-04-22 18:42:32 +08:00
liv
bfcf38c8bc
damn it
2019-04-22 07:05:46 +02:00
liv
9e328da641
use -- --nocapture when testing
2019-04-22 05:49:23 +02:00
Chris Pearce
77de6e5d6a
Clean up test includes for File and Path
2019-04-12 23:14:15 +01:00
Chris Pearce
d01a71f7de
Extract exercise struct to encapsulate path logic
2019-04-12 08:58:25 +01:00