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.
Java fork (author inactive)
Integer
constructor, which triggers deprecation warnings (fixing this issue)Many many errors
Outdated/deprecated usage of new Integer()
Remove this entirely, simply use ints.
Final test is incorrect
Assertions aren't even on for whatever reason
The cheater has been handled, RSpec framework has been used to display the assertion messages properly too, closing !
Approved
Encountered issue where I had to refresh the page to update and rerun tests.
Unclear if due to caching or server-side processing delays.
I encountered an inconsistency in the calculate_tip function where the return varied between 0 and 'Rating not recognised' depending on the rating input. Initially, the code was set to return 0 when the rating was not recognized in the ratings dictionary. However, upon reviewing the specifications or encountering different test scenarios, I realized that the correct return should be the message 'Rating not recognised' instead of 0 when the rating is not found in the dictionary.
This inconsistency led to divergent results during testing, as the code was adjusted to adhere to specific expectations for recognized and unrecognized ratings.
same problem.
i can't solve this one, any idea how is this work ?
same. did you find a solution?
In Java, the type Integer is considered as deprecated and for removal :
src/test/java/TipCalculatorTest.java:8: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
assertEquals(new Integer(2), TipCalculator.calculateTip(30d, "poor"));
Fixed without invalidating solutions.
enjoyed it but should be 7 kyu
Normal should be paying staff a wage that doesn't require tips. A tip from a non American. :)
C translation (author gone)
Added for Coffeescript
Loading more items...