I was not able to submit the kata because of these errors so I decided to skip because I had no idea how to fix them.
./src/test/java/SolutionTest.java:8: error: cannot find symbol
assertEquals("apple", Kata.subtractSum(10));
^
symbol: variable Kata
location: class SolutionTest
./src/test/java/SolutionTest.java:19: error: cannot find symbol
assertEquals("apple", Kata.subtractSum(n));
^
symbol: variable Kata
location: class SolutionTest
2 errors
how do I solve the random tests? Its the last thing I have to do
bruh lmao
ah alright thank you so much, im new here so i did not know
Then this is where the error comes from. When I enter the editor, I see the following initial solution:
That's what you should complete, and not write your own main method :P
Edit: to make your code look nicer you can use https://docs.codewars.com/references/markdown/#code-block
idk why some of my code is outside the box, and no to both of your other questions you asked.
This comment is hidden because it contains spoiler information about the solution
What does your solution look like? Do you have a class called 'Kata' and method named 'subtractSum' inside it? (as the tests expect it)
I was not able to submit the kata because of these errors so I decided to skip because I had no idea how to fix them.
./src/test/java/SolutionTest.java:8: error: cannot find symbol
assertEquals("apple", Kata.subtractSum(10));
^
symbol: variable Kata
location: class SolutionTest
./src/test/java/SolutionTest.java:19: error: cannot find symbol
assertEquals("apple", Kata.subtractSum(n));
^
symbol: variable Kata
location: class SolutionTest
2 errors