0

Why would a practise not give any result at all?

I'm doing the Button practise in Kotlin OOP section. My code is correct, but when I run it test case 1 remains locked and doesn't show any results at all. I can't move on because the next lesson is locked. Also, I have 3000 bits, but never worked out how to spend them.

5th Jan 2023, 9:41 PM
Dibley Mark
Dibley Mark - avatar
3 Antworten
+ 1
Glad that you found it. 👍 Usually at least one test is open, but apparently not always. Locked tests never unlock for anybody. Sololearn uses locked tests to encourage better problem solving, as some people might simply print the expected result without implementing a generalized solution.
5th Jan 2023, 11:45 PM
Brian
Brian - avatar
+ 3
If there is only one test and it is locked, you'll have to copy and run your code in the Code Playground to see its output and debug it. I believe Bits are only used in the Community section Code Coach. I am not completely sure. I have amassed 16K Bits and never use them. They used to be useful for buying Pro Code Coach challenges, but now it seems those challenges are open to everybody. The rules are always changing, and there are no announcements. I guess that's part of the game here. Maybe the Bits currency will disappear soon.
5th Jan 2023, 10:04 PM
Brian
Brian - avatar
+ 2
There were 3 tests. Always before if there were errors in the code it would show the input, output and expected output. This time the test remained locked. Very annoying. I did as you suggested. Thank you. Took me a while to spot that I had typed ( instead of {. When I fixed the code the practise completed with a success message, but all 3 tests remained locked.
5th Jan 2023, 10:33 PM
Dibley Mark
Dibley Mark - avatar