Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Approved, thanks.
fixed
Notes:
u32
types for input and output.assert_eq!(actual, expected, "\nYour result (left) did not match the expected output (right) for the input {input:?}")
assert!(actual == expected, "Expected output {expected:?}, but instead got {actual:?} for the input {input:?}\n")
assert_eq!
,assert!
does not force any boilerplate output in the assertion, but it does include theat line n in blah.rs
line at the end, hence the trailing newline.actual
andexpected
, so other people can understand what your code is doing without having to parse virtually identical function names.result
is entirely ambiguous.todo!
to the solution setup, so that the function compiles out of the box (currently it generates an error because it returns()
.use
only what you need from the user's solution, i.e.use super::rental_car_cost
, not*
. Hygiene is a good habit.<=
.I'll reject this translation in its current state, but feel free to fork it and apply the requested changes.