So it seems like String.length() floors float numbers itself.
Thank you very much.
I never knew length() copes with float numbers like that.
can you explain this in detail?
Learned something new. Who would have thought slice has some extra quality assurance build in : )
"Pi from school".slice(3.14)
Added a couple things to the preloaded section.
Going to mark this as resolved since the random tests have been added.
It has a help text (so I won't reproduce that here).
You don't need it very often, and you definitely should not have any part of the solution there. Code in Preloaded is callable for ( although not visible to ) the user.
Thanks. I didn't know what Preloaded does.
Do not put the initial code also in Preloaded. This breaks solution of the form const solution = .
const solution =
I fixed that for you.
Added random tests.
Looks fixed ;-)
Needs random tests.
I just updated it by using assertDeepEquals and sort. Can you try again? I'm not sure whether there is better way to assert equal two arrays ignoring order.
Your testcases doesn't work ;-)