Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Doesn't matter what the conflict was. Approved.
Hopefully the merge conflict is fixed now, as I cannot get codewars to display to me what the conflict is, and I don't see it.
Meanwhile the description changed so we have merge conflicts. Can you please fork and update to the latest description? Then I will approve.
Good idea:
Added additional tests with altered random generation.
Also modified reference solution to be fully regex.
I think we need to have targeted input generators. Currently in 200 random tests you have roughly 10% expecting
true
of which at most 2 (on average) actually contain charactera/before
. This means the rest of them is just a vacuous truth.~2/200 test fail when you miss the endsWith condition. I'd like to have a more balanced outcome. Reducing the max input length to 100 raises to ~25% expecting
true
but doesn't improve the other stats.Forked and changes applied.
Also swapped out reference solution.
static
.false
! 1000 is too long for input strings. Make them of random length.before
andafter
are still chosen the JS-y way."
and the chars in'
such that solvers can easily copy these to create own test cases.Changes done :)
char
as input type for the letters."expected <true> but was <false>"
.private
.Math.random() * size
.java translation