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.
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"));
C translation (author gone)
Ruby 3.0 should be enabled, see this to learn how to do it
Needs random tests
This comment is hidden because it contains spoiler information about the solution
Needs random test cases
Nice kata, you do however need a negative test case as well as a test case that doesn't use
assert_equals
(Ruby) See @danielpclark's solution, which cheats your entire test suite.