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.
Python testing framework is not used correctly. Assertions at top level are not a correct thing, assertions must be called inside of a function decorated with
@it
.You can see example kata or Python authoring guide for more info.
What is the result for
d=.6
?And
d=.5999999999999999222844
?And
d=.6000000000000000333
?P.S. They are all the same number (
0.59999999999999997779553950749686919152736663818359375
or5404319552844595/2**53
)Maybe you should take a break from authoring katas. All (7) the katas you published before got retired for being low quality.
If you want to improve your katas you can try solving more difficult katas and then check out their test setups.
Also, on your previous katas people left helpful advice and links for writing higher quality katas.
Duplicate of numerous primes-related katas.
Use new test framework
Hi,
well... first published kata... At least you got the random tests (somehow... see below x) )
exist
is actually never updatedexist
is an antipattern, and you'd surely avoided the error (first point) if you'd have defined it directly inside the loop)You can continue to play with the kata to improve your authoring skills, but I'd suggest to unpublish it (if you're fast enough, because the odds it gets retired in less than 20 minutes are pretty high).
cheers
No random tests
Create a kata to hunt solution is not an acceptable play on CW