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.
Please use code formatting when posting code. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Expected
x
to equaly
indicates that your function returnedx
when it should have returnedy
, not the other way around. Not a kata issue.Some extended test are wrong, please review them
Testing for arrayDiff([0,-12,20,1,20,-15,15,-8,-19,-19,1,2,3,17,-3,-5,19,-16,-18],[0,-12,20,1,20,-15,15,-8,-19,-19,1,2,3,17,-3])
Should work for random arrays too: expected [ +0, -5, 19, -16, -18 ] to deeply equal [ -5, 19, -16, -18 ]
0 it is in both arrays this shouldn't be in the array result, why are you expected 0?