Open ttoomm318 opened 6 years ago
Got yesterday same issue. Because of that cant make 100% progress :(
It seems that it was fixed before https://github.com/Kotlin/kotlin-koans/commit/888c9a17a9130f69aa96a3f85014305591c22127 when it was just a deprecation.
I just hit this now. The easy temporary solution is to change the runtime to something other than 1.3 in the bottom right corner.
The bug is still there
Just hit the bug. It is just the testcase that is (now) wrong since it tries to assign a single value in named form to a collection. However @EhsanKia s temporary workaround does indeed work.
The bug is still not fixed, and looks like there is no way to change the Kotlin version in Koans.
Still there for me too :( its a shame I won't be able to get satisfaction of seeing 100% in the progress bar now 😢
Its still not working :(
@mgwizdal please hard refresh the page
@AlexanderPrendota Tried on different browsers and refreshsed hard - still the same issue
Please try one in private mode. Maybe it helps. Thanks
There seems to be a bug with the test(s) for
fun Shop.getNumberOfTimesProductWasOrdered(product: Product): Int
I've tried the the following two solutions:
Provided solution:
My original solution:
at the following two sites:
and I get
Just to add, I tried the same solution in the Playground at https://play.kotlinlang.org/ (using the same code from Shop.kt and simplified code from TestShop.kt) and it runs fine, giving the correct result.
I've attached the file with code copied from Playground. Kotlin Playground.kt.zip