Commit Graph

458 Commits (05ca3d77f70e107aec13ddb0e353e68e66aa532e)
 

Author SHA1 Message Date
Sanjay K 05ca3d77f7 Merge branch 'master' of https://github.com/sanjaykdragon/rustlings 5 years ago
Sanjay K 6deee7e3e9 fixed spacing 5 years ago
Sanjay K 9788496a85
Update option1.rs 5 years ago
Sanjay K 6d3a412d47
Update option1.rs 5 years ago
Sanjay K 135e5d47a7 feat: added excercise for option 5 years ago
mokou 8b9479071c 2.2.1 5 years ago
mokou 3d9b03c52b fix: Re-add cloning the repo to install scripts 5 years ago
bors a03d9655a8 Auto merge of #269 - Tarnadas:master, r=fmoko
feat: Add clippy lints

This is a feature PR which adds the possiblity to create clippy exercises.

Clippy has many awesome linting rules, which can give a deeper understanding about the Rust programming language, therefor I made this PR.
5 years ago
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
5 years ago
bors 7e8530b21f Auto merge of #271 - jrvidal:refactor, r=fmoko
refactor: exercise evaluation

After working a bit on #270, I realized that it'd be useful to first perform a minor refactor of exercise evaluation.

* Now we have standard methods to compile + execute that return `Result`s.
* Success/failure messages are standardized.
5 years ago
bors 98358597a9 Auto merge of #277 - sjmann:update-ignore, r=fmoko
chore: update gitignore to ignore pdb files

Pr for issue #275
5 years ago
sjmann 8064facbb8 chore: update gitignore to ignore pdb files 5 years ago
sjmann f981dcfde4 Merge branch 'master' of https://github.com/sjmann/rustlings 5 years ago
mokou 6eb62fa2ce 2.2.0 5 years ago
bors 78295ce92f Auto merge of #274 - sjmann:master, r=fmoko
chore: fixed merge conflicts from traits exercises added by s-marios

I hope this doesn't step on any toes but I wanted to try the traits exercises from #216 so I updated them to match the new structure with hints included in info.toml
5 years ago
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