-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Bug in Collections/Compound tasks? #167
Comments
Got yesterday same issue. Because of that cant make 100% progress :( It seems that it was fixed before 888c9a1 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 |
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
The text was updated successfully, but these errors were encountered: