Commit Graph

643 Commits (77f407dd5ff6a3585f9b0236450f8429ca94efbd)
 

Author SHA1 Message Date
fmoko 358fb473cd
Merge pull request #276 from stigjb-forks/testing-test4
Enable test for exercise test4
5 years ago
Stig Johan Berggren a45486f2d0
Add a second test case 5 years ago
Stig Johan Berggren 8b971ffab6
Enable test for exercise test4 5 years ago
Steven Mann dc84aacc65
remove confusing comment wording 5 years ago
sjmann bbf8922ef7 Merge remote-tracking branch 'upstream/master' 5 years ago
sjmann b559cdd73f added traits exercises 5 years ago
fmoko ec51cdb229
Merge pull request #273 from sjmann/master
docs(iterators): Updated iterators readme to account for iterators4 exercise
5 years ago
sjmann a3f70124dc fixed typo 5 years ago
sjmann bec8e3a644 reworded missing exercise explanation 5 years ago
bors c228a06e49 Auto merge of #272 - QuintenJohnson:fix/installation-warning-messages, r=fmoko
fix(installation): make fatal errors more obvious

I initially ran the installation script without rust installed. The fact that the error message was labeled with WARNING made me unsure whether installation was successful or I needed to re-run after installing rust. There's an error code returned on fatal errors, but this change will make things clearer.
5 years ago
Quinten Johnson 17d0951e66 fix(installation): make fatal errors more obvious 5 years ago
Roberto Vidal 43dc31193a refactor: exercise evaluation
Exercise evaluation (compilation + execution) now uses Results
Success/failure messages are standardized
5 years ago
fmoko 83bbd9e82e
chore: Correct test command in tests1.rs comment (#267)
chore: Correct test command in tests1.rs comment
5 years ago
Jason Tsai 39fa7ae8b7 chore: Correct test command in tests1.rs comment 5 years ago
fmoko 3161a8fd9d
Fixed mangled sentence from book; edited for clarity (#266)
Fixed mangled sentence from book; edited for clarity
5 years ago
Paul Bissex ade52ffb73
Fixed mangled sentence from book; edited for clarity 5 years ago
fmoko 89c73647f1
Add variables5 to introduce shadowing (#264)
Add variables5 to introduce shadowing
5 years ago
Torben Jonas 0c73609e6f feat: Add variables5.rs exercise
closes #260
5 years ago
fmoko 19a93428b3
fix: Update deps to version compatable with aarch64-pc-windows (#263)
fix: Update deps to version compatable with aarch64-pc-windows
5 years ago
Harrison Metzger 32a9cf7b8d fix: Update deps to version compatable with aarch64-pc-windows 5 years ago
fmoko c86b217e1d
Created consistent money unit (#258)
Created consistent money unit
5 years ago
gnodarse fd57f8f2c1 Created consistent money unit 5 years ago
bors 0d1f1a19b7 Auto merge of #253 - codehearts:watch-completion-message, r=fmoko
feat: Show a completion message when watching

The completion message is shown only once all exercises succeed and are
not annotated with "I AM NOT DONE." The watch command will also exit

closes #251

Let me know if there are any tests I could add or if the completion message should be tweaked!
5 years ago
Kate Hart d25ee55a32
feat: Show a completion message when watching
The completion message is shown only once all exercises succeed and are
not annotated with "I AM NOT DONE." The watch command will also exit

closes #251
5 years ago
fmoko 3afa96bed4
Enable a test and improve per clippy's suggestion. (#256)
Enable a test and improve per clippy's suggestion.
5 years ago
dmitri-mamrukov dfdf8093eb
Enable a test and improve per clippy's suggestion. 5 years ago
fmoko 3906efcd52
fix(docs): Added a necessary step to Windows installation process 5 years ago
Socrates 2021a1ac7d
Update README.md
Added an essential step to Windows installation process (Setting ExecutionPolicy to RemoteSigned because it wouldn't install otherwise).
5 years ago
bors 426a7bb87f Auto merge of #249 - AbdouSeck:conversions, r=fmoko
feat: Add type conversion and parsing exercises

This pull request adds exercises for converting values into specific types. The exercises uses string to struct type conversions, but most of the traits in the exercises can handle more than just string parsing and conversions.

The following traits are covered:
1. `From` and `Into`
2. `TryFrom` and `TryInto`
3. `AsRef`
4. `FromStr`

The `as` operator is also covered.
5 years ago
Abdou Seck fc26b5e151 I AM NOT DONE comment in conversions exercise files 5 years ago
Abdou Seck 0c85dc1193 feat: Add type conversion and parsing exercises 5 years ago
marisa fe10e06c37
fix(tests1): Change test command
Closes #243.
5 years ago
marisa 419f7797f2
fix(iterators2): Remove reference to missing iterators2.rs (#245)
fix(iterators2): Remove reference to missing iterators2.rs
5 years ago
Rahat Ahmed 54571a5fca
fix(iterators2): Remove reference to missing iterators2.rs 5 years ago
marisa 4b79691d5e 2.1.0 5 years ago
marisa 615ce32798
fix(enums): Add link to chapter on pattern syntax (#242)
Add link to chapter on pattern syntax
5 years ago
Jens 31c25ebb50
Add link to chapter on pattern syntax
After being stuck on exercise enums3.rs for about an hour or two, having read the entire chapter on enums 2-3 times, and still being unable to complete the exercise, i started broadening my reading. I finally found the answer in the rust docs via google.
5 years ago
bors f4acb888a6 Auto merge of #241 - vyaslav:master, r=fmoko
feat(watch): show hint while watching

`rustlings hint ...` command is not convenient when doing exercises with `rustlings watch`.
This PR makes it possible for user to type `hint` while running `watch`  and get hint text for exercise which is currently failing.
e.g.
```rust
...
  --> exercises/variables/variables1.rs:13:36
   |
13 |     println!("x has the value {}", x);
   |                                    ^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0425`.

type 'hint' to get help:
hint
Hint: The declaration on line 12 is missing a keyword that is needed in Rust
to create a new variable binding.
```
5 years ago
vyaslav 8143d57b4e feat(watch): show hint while watching 5 years ago
bors a40ad092e9 Auto merge of #239 - jrvidal:master, r=fmoko
fix: line numbers in several exercises and hints

The introduction of `I AM NOT DONE` shifted the lines of all exercises, which now need adjustment.
5 years ago
Roberto Vidal b565c4d3e7 fix: line numbers in several exercises and hints
The introduction of `I AM NOT DONE` shifted the lines of all
exercises, which now need adjustment.
5 years ago
bors e9a835c1c0 Auto merge of #237 - ckeschnat:master, r=fmoko
fix(variables1): Correct wrong word in comment
5 years ago
bors cf38f03459 Auto merge of #238 - ageorgou:functions4-update, r=fmoko
Update line numbers in hints and outdated comment

In functions4, the missing code is in line 14 in the latest version:
```rust
error: expected type, found `{`
  --> exercises/functions/functions4.rs:14:30
   |
14 | fn sale_price(price: i32) -> {
   |                              ^ expected type

error: aborting due to previous error
```
but the hint points to line 12. This is due to a recent change in 2cdd61294f.

Also includes similar updates for strings2 and primitive_types4.
5 years ago
Anastasis Georgoulas 4c5189df2b fix(primitive_types4): update outdated hint
Exercise was changed to test (and the order was switched) in #209.
5 years ago
Anastasis Georgoulas a09f684f05 fix(strings2): update line number in hint 5 years ago
ageorgou 8cc5af121c
Fix(functions4): Update line number in hint 5 years ago
Chris Keschnat c42c3b2101
fix(arc1): Fix some words in the comment 5 years ago
Chris Keschnat fda5a47069 fix(variables1): Correct wrong word in comment 5 years ago
marisa 57a837bde6
Merge pull request #236 from jrvidal/master
fix(primitive_types4): update outdated comment
5 years ago
Roberto Vidal ded2c034ba fix(primitive_types4): update outdated comment 5 years ago