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.
The precedence of
=
is lower than that of+
. You should be parsinghijwpyk = 73 + 44
ashijwpyk = (73 + 44)
not as(hijwpyk = 73) + 44
.It looks like the error message has the "expected" and "received" backwards -- that is, your code said 73, but the expected value is 117.
just gotta hardcode that specific case
Kata is still unsolvable at time of this comment due to this issue.
oops this actually wasn't meant to be posted!
This comment is hidden because it contains spoiler information about the solution
Now, you can find it.
this means you solved it the hard way. x)
Kudos!
Hey thanks @Blind4Basics, didn't realise I could see the solutions now. The ones there seem to have taken a very different approach to mine, wonder if I've done the easy or hard approach haha.
But my solution isn't there, and when I click View Mine, it says 'No solutions'. I can indeed see the tests, however I'm not sure that helps as all the fixed ones pass now anyway.
Just tried Attempt a bunch more times but am getting 1 failing random test each time, so I'm kinda resigned to needing to take a look at a random test next. Hoping to avoid that as they seem so big, but oh well.
Anyway, thank you again. I really loved this kata, kudos to you! Particularly loved that as I progressed, my code got betterer and betterer. Hopefully I am now very very close to being able to submit.
you can fork your previously passing solution (it should already be visible in the solutions page) and work there wih your updated code. This way you can also see the tests.
I have completed the kata and got a pass on the random tests once, on my third click of Attempt after finally solving all the fixed tests.
So I refactored and am happy with my solution, but need to pass the tests again to get to Submit.. which of course now I can't seem to do, arrrgh. I'm just clicking Attempt repeatedly, buoyed by that single pass I had, and getting the occasional "too many requests" error but no pass.
Hoping I don't have to debug a random test! Wondering if there is a test seed being used, and whether I can reset it somehow?
Thank you so much for your quick reply!
And arrrgh, the issue was me. When I copied that test into the local tests, I used the wrong expectation. Ugh.
So sorry to bother you, but thank you again :)
Hello,
The expected output in the full test suite is effectively the following (mnius new lines):
So I guess you're mutating something you shouldn't in your code?
Hey many thanks for your reply and pointers. Sorry I didn't see it till now!
Hello! Really enjoying this kata, thanks :)
I am up to the
Inner shapes identification correctness
test, which is similar in some ways toHomer's favorite
-- in that its an outer shape with some inner shape(s) -- but the expected outputs are not aligned, so I'm confused.Homer's favorite
expects the inner shape to be removed from the outer shape, butInner shapes identification correctness
expects the outer shape to not have any inner shapes removed.These seem to be opposite approaches?
Here are the shapes & expectations:
Homer's favorite
input shape:expects:
while
Inner shapes identification correctness
:expects:
I don't understand why the outer shape in expected result for the latter has no inner holes?
Can someone please help me understand what the difference is between these 2 input shapes, please?
This comment is hidden because it contains spoiler information about the solution
The expected value for Douglas Adam's description in the first test needs updating:
-> should now be: "English author and humourist (1952–2001)" as per the "en" value in JSON response now.
Can you please fix that so we can submit?
(All other test cases are good and passing though. I'm not getting the issue mentioned by Iron Fingers, below.)
Loading more items...