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.
I was doing the same thing and it wasn't working for me.
I forgot to import
@RepeatedTest
.I am learning about translations, markdown, and other things. I really appreciate your feedback and your help in this translation.
Thanks.
I don´t know how to realize the @RepeatedTest without a for loop.
Could you help me to do that?
My mistake. I used the Python description as a reference. It's already corrected. Thanks for pointing that out.
That which you mention is not a Java bug.
Comparisons between primitive types do not produce the errors you mentioned, and the "equals" method
of Integer class compares whether they are the same object by comparing if are of the same class and their values.
Integer equals:
I've solved that problem. There was a precision issue in test case.
Hi.
I made a change to ensure that an error of 1E-10 or less is considered valid.
There was a small chance that it would not pass in the tests or your solution.
instead of:
I made these small changes because there were times when, even though the square roots were in the same direction in both cases, the test didn't match those roots within the margin of error and gave a slightly different result. This change fixes that, and in 100000 tests performed, there is consistency.
Best regards.
Java
Why sometimes (.2% de 100 of running test) fails?
I have compensated for an error of 1E-10.
sumHeight: 39.399476090834455 sumWidth: 39.399476090834455: perfect
org.opentest4j.AssertionFailedError:
Expected :fat
Actual :perfect
Hi, I made a Java translation for this Kata. Please, take a look. :)
Java 8 Translation
numeric value of true is 1
numeric value of false is 0
Java Translation.
Ready for review.
Java translation ready for review!
Thx
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thanks!!!!
This comment is hidden because it contains spoiler information about the solution
Loading more items...