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.
Forked and approved
Restructured tests
Use approx equality
Added useful assertion messages
Removed unnecessary block of tests
Cool
In Python is very simple
Example
age = int(19)
txt = str("Hello my name is Beno, i'am {} years old")
print(txt.format(age))
Added const for the char* r
That's just a formatting preference. What's I think is a bad formatting preference is putting anything after a scope-closing } on the same line.
Just a minor Feedback:
if you're using the curlybrackets, then put them in the next row so the code is simpler to read.
petty mid
char fanis(char r, int k) {
for (; *r; *r++)
*r = k + *r;
return r;
}
+1
https://www.snopes.com/fact-check/titanic-first-sos/
Maybe change the function nameto follow best practise, like
equal_sum?
.Check this: https://ieftimov.com/posts/testing-floats-in-ruby/#with-rspec
Thanks for noting; is this causing issues?
it looks like you are using strict equality on floating-point numbers ;-)
Suggesting a correction. The statement "SOS (that was first issued by Titanic)" seems to be incorrect, with reference to the following: https://timmaltin.com/2019/04/07/titanic-sos-distress-signal/ "FALSE. SOS was probably first used on 10th June 1909, about three years before the Titanic sank, by the Cunard liner SS Slavonia, when she was wrecked off the Azores."
Loading more items...