Yes, it runs that test suite which runs your code. You may edit this field to add or modify test cases to assure your program does what you want. Then you could press submit which will run your code against the complete set of tests including random tests. There may be things you didn't anticipate there, so make sure your code is robust.
Hello! Noob question: Is the test case code shown on the bottom of the screen meant to be a runnable program? Or is it meant to fucntion more like pseudo code, to guide your thinking and program writing?
Your function should return the result, not print it to the console, read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
You also don't need to create a main method.
This comment is hidden because it contains spoiler information about the solution
Yes, it runs that test suite which runs your code. You may edit this field to add or modify test cases to assure your program does what you want. Then you could press
submit
which will run your code against the complete set of tests including random tests. There may be things you didn't anticipate there, so make sure your code is robust.Thank you for your response. So pressing the "test" button runs my code and the test code?
Yes, the Sample Tests code runs your program with one case to see if your program works in that case.
Hello! Noob question: Is the test case code shown on the bottom of the screen meant to be a runnable program? Or is it meant to fucntion more like pseudo code, to guide your thinking and program writing?