After Solving a Code Challenge
If you run the solution validation, it will execute a set of predefined tests against your solution and give you a message about whether your code was correct or not.
If the solution is not correct the unit tests will be displayed in red. You have to analyze the received errors and solve them so that they pass the initial tests. (Fig. 1)
Fig. 1
Besides the unit test results also code execution errors are displayed, under the unit test results. A user can also add debug messages as they will be displayed as well when validating the user's solution. (Fig. 2)
Fig. 2
When the initial tests have passed and the text turns green, you can submit the solution. (Fig. 3)
Fig. 3
The Submit key will check your initial tests plus a few more hidden tests. (Fig. 4)
Fig. 4
Therefore, if you pass all tests successfully, you will collect some points upon completing the challenge. You will receive a notification every time you submit a code challenge with the number of points you received for completing the challenge. (Fig. 5)
Fig. 5
The notification will appear in the notification bar, where you can view the last notification as well as the last ones received(Fig. 6). You can check your current level and your total points on the Leaderboard page
Fig. 6
After your code has been validated you will be redirected to the Solutions page.