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.
... this is exactly why I want test frameworks to use this wording instead: expected X but got Y
the wording used here makes sense when interacting with the test code, but the test code is hidden, it's the opposite of that. it should instead focus on presenting the result :s -- having the test read "expected Y" when in reality it expects X is just silly.
I'm not natan, but did you consider what happens to negative numbers when they're squared? :P
In your example, if you take the first number -95 and square it, you get 9025, which is not the smallest number at all... But it exists in 2nd array, just like all the other numbers.
He's right, this fails in go.
[11 19 19 19 121 144 144 161]
[121 361 361 14641 20736 20736 25921 36100]
121 - 121
361 - 361
361 - 361
361 - 14641
False
3 19s but only 2 361s
the test button is just example tests, the attempt button is the full test suite.
there's nothing weird about passing some tests but not others. that's not an issue.
Happy coding
^_^