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 key is (each letter appears the same number of times (not necessarily just once))👍
You should have added fractions, now it's 8kyuish)
Fixed in OP's fork
Approved
This comment is hidden because it contains spoiler information about the solution
python new test framework is required. updated in this fork
This comment is hidden because it contains spoiler information about the solution
Needs true random tests. The current "random" tests just consists of different values of the same route.
Also needs more fixed tests. There is only ever 1 route hash tested for the kata.
The methological and design of the kata is incorrect: segments refer to URL segments, which is the path of the URL further delimited by dashes. Hence a method named
.segments
should not return the named hash, it should return an array of the URL segments. The named segments would be the params captured by the route.Even then, storing the params in the object as a mutable state on
Router
is insane design, because it doesn't belong toRouter
, but specific to a request itself. Instead of returning["CommentsController", :edit]
and storing{ slug: "test-post", id: "12" }
into.segments
the method should really return["CommentsController", :edit, { slug: "test-post", id: "12" }]
(with empty hash ornil
as the third element when no named segments exist). Every MVC framework does this so the action will actually get the params as it is invoked by the framework.Test.expect
should not be used.could add
FUNDAMENTALS
tagYes, what other thing could they be?
Not in this kata.
Before trying to solve this kata, I don't understand how two numeric arguments represent the dimensions of a 2D rectangle. Are these the lengths of two its sides? Can there be a non-2D triangle?
In the description, I would specify that the first length is meant to be the longer one.
The random tests expect 'False' when the first number is smaller than the second one.
Nowhere, and it's been already asked below.
Loading more items...