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.
Thanks for the heads-up! You’re right that under this kata’s rules (ASCII letters only, case-insensitive, empty → false), “xgx” is a palindrome.
I’ve:
Please give it another try with the updated tests. If anything still looks off, ping me and I’ll adjust fast.
thank you for your response! i will work a little bit more on that kata :) i hope you enjoyed it anyway
Notes
xgx
is a palindromethank you for your response! i will work a little bit more on that kata :) i hope you enjoyed it anyway
Initial solution setup should not be empty
Why is
010
interpreted as0
(Default value?) It matches the given regex , which should output10
, since00
also outputs0
in your sample testsAlso, please do not use $default , and include the function signature , and a lot of PHP constants in the description (unless you've planned to make this a PHP only series? -> Then you should probably specify it clearly at the beginning)
I don't like the fact that the regex for valid string is given directly, instead you should explain it in actual wording
The following should be explained clearer with relevant examples (
1e8
,0b0
,0x0
...)Random tests could use some shuffling and more randomness (for the case of strings, true, false, null)