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.
rust style guides suggest that enum variants should be PascalCase, and that SCREAMING_SNAKE_CASE is reserved for global variables such as statics and consts.
more details?
done.
Expected: equal to 21
Actual: [unsupported type]
i specified the operators, and specified the requirements on the return type
It's not mentioned what needs to be returned either.
Normally for any number types performing an arithmetic operation will give a result of the same type (because of closure), however an arithmetic operation on two
StupidNumber
s expect to return anint
, which is definitely not expected. (Also maybe it should be calledStupidInt
? Since it's almost aint
)Check it now
It is not defined what operations need to be implemented/are tested.
This is an issue ;-)
I think the description should say
...that return all *basic arithmetical* operations...
(i.e. add, sub, mult and div), because there are definitely more operations to consider imo.the comment on which i closed the issue (you can go back and look) was notifying you of the change (that all the ints had been changed to unsigned) and then you started lecturing me about the difference between unsigned ints and signed ints
not anymore. i changed it when i resolved the issue
Ok. I just don't understand why you said below i'd rather not convert from u64 to f64 at the same time you closed the issue, and the kata still used
i64
.The kata is using
i64
.Loading more items...