Zerotask
249ad44cc0
docs(exercises): updated all exercises readme files
...
all exercises readme files now have a unified structure and a description
4 years ago
Taylor Yu
c3e7b83178
fix: use trait objects for from_str
...
Use `Box<dyn error::Error>` to allow solutions to use `?` to propagate
errors.
4 years ago
Taylor Yu
2e93a588e0
fix: use trait objects for try_from_into
...
Use `Box<dyn error::Error>` to allow solutions to use `?` to propagate
errors. In the tests, explicitly check `is_ok()` instead of trying to
force the error type to `String` (or other `PartialEq` type) using
`assert_eq!()`.
4 years ago
Jirka Kremser
5f7c89f85d
fix(from_str): Correct typos
...
typos in the comments
4 years ago
Jean-Francois Chevrette
15e71535f3
fix(from_str): test for error instead of unwrap/should_panic
4 years ago
Sang-Heon Jeon
4f1374a6e7
feat(from_into) : add test for checking unnecessary trailing value
4 years ago
Sang-Heon Jeon
5a0521e92c
feat(from_str) : add test for checking unnecessary trailing value
4 years ago
Christos Kontas
04f1d079aa
feat(try_from_into): remove duplicate annotation
4 years ago
Wei Hu
4f4cfcf3c3
fix(try_from_into): type error
4 years ago
JP
96347df9df
fix(try_from_into): Update description ( #584 )
...
Description update
4 years ago
fiplox
95ccd92616
feat(try_from_into): Add tests ( #571 )
...
Co-authored-by: Volodymyr Patuta <6977238-fiplox@users.noreply.gitlab.com>
4 years ago
Greg Leonard
2933f51949
chore: Change point to comma in from_into.rs
...
A typo in the fn test_bad_age() hint message had a point rather than comma
Prev:
// Test that "Mark.twenty"
Current:
// Test that "Mark,twenty"
4 years ago
Ryan McQuen
3286c5ec19
fix(using_as): Add test so that proper type is returned. ( #512 )
4 years ago
Étienne Barrié
3144d3ae63
chore: Run rustfmt on exercises
4 years ago
Chad Dougherty
523d18b873
feat(try_from_into): Add insufficient length test ( #469 )
4 years ago
Benjamin Jones
bb5f404e35
chore: Alter whitespace for consistency
...
* Add newline after "I AM DONE" in exercises for consistency
* Remove trailing whitespace from exercises
4 years ago
millefalcon
307252e9ae
Added example to show the AsRef working
4 years ago
IkaR49
763aa6e378
feat: Rewrite try_from_into ( #393 )
4 years ago
fmoko
a39ffb2fb8
Merge pull request #368 from apatniv/update_test_case
4 years ago
apatniv
41f989135d
Review Comments: Add other test cases
4 years ago
Jihchi Lee
a901499ede
fix(from_into.rs): typo
4 years ago
apatniv
19fb1c240c
test: Add missing test case for from_str exercise
5 years ago
lebedevsergey
c9e4f2cfb4
fix: confusing comment in conversions/try_from_into.rs
...
Co-authored-by: Lebedev <sergey.lebedev@corp.mail.ru>
5 years ago
Tonći Galić
60393999b8
remove bottom comment instead of top
5 years ago
Tonći Galić
dab90f7b91
Remove duplicate not done comment
...
As indicated in #259 , I found it confusing to have 2 comments as the code wouldn't compile unless I solved both issues (I used the script from #281 to remove a comment and use `:wn` to go to next exercise, hence this tripped me).
5 years ago
skim
bc22ec382f
adds additional test to meet exercise rules
5 years ago
dmitri-mamrukov
dfdf8093eb
Enable a test and improve per clippy's suggestion.
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