Open Haksell opened 4 years ago
after solving 1500 problems I still can never remember which way it goes.
In general, the output is above the assertion result because your solution is called before the assertion (must be called to test it).
The test result output depends on the test framework and the tests written by the authors. Many test frameworks' outputs are pretty clear by default because it usually stops at the first assertion failure in a test case.
Codewars test frameworks (JavaScript, Python, Ruby) are exceptions, and we're either migrating away or planning to improve it.
That being said, authors should group related tests together, avoid having too many assertions in single test case and name them clearly as well. Just like how you'd write tests outside Codewars. These can prevent many of the unnecessary confusions.
Is your feature request related to a problem? Please describe.
When we include print statements in our code, it is often difficult to know whether the error message is linked to the print statement above or below it. A lot of Issues and Questions are raised when people don't understand their error messages due to this confusion, and after solving 1500 problems I still can never remember which way it goes.
Describe the solution you'd like
A bar of separation (
<hr>
) between each output would be nice.Additional context
I didn't know which keywords to look for so this may be a duplicate.
┆Issue is synchronized with this Clickup by Unito