Changed tests in Python and Ruby.
Ditto for Python description.
Same for the Java description - please rectify this in addition to fixing the test cases noted elsewhere in the comments.
This comment is hidden because it contains spoiler information about the solution
241 people solved this kata in Go, so I think there is no issue.
Please check your code. And next time, do not create an issue, if you are not sure for the reason for the failing test.
There is a bug in java production test.
For n = 4 and greater even numbers properly result is: [1, 1, 1, 1] [0, 0, 0, 1] [1, 0, 0, 1] [1, 1, 1, 1]
your test result: [1, 1, 1, 1] [0, 0, 0, 1] [1, .1., 0, 1] [1, 1, 1, 1]
You are adding a one '1' too much, and it is necessary to remove last 1 from snake.
The description says “Because of the edge-cases for tiny spirals, the size will be at least 5.” But Ruby's test go from 0 to 5+ Please change either tests or task description.
Spoiler!
Also fixed
Fixed
@ There is typo in Ruby version. Starting code is:
# MOD = 998244353 has been predefined def height(n,m): return 0 end
so there is -e:5: syntax error, unexpected ':'
-e:5: syntax error, unexpected ':'
Hell yeah, solution like this is wrong:
def check_ages?(data, sex, age_is_greater_than) data.all? { |i| i[:sex] == sex || i[:age] > age_is_greater_than } end
check_ages?([{:age=>40, :sex=>:m}, {:age=>19, :sex=>:m}], :m, 20) will return true instead false
check_ages?([{:age=>40, :sex=>:m}, {:age=>19, :sex=>:m}], :m, 20)
true
false
That's why I got it wrong, it needs ALL matched sex to have a superior number!
The task says returns true if all of the items matching the sex value have ages greater than the value provided.
I think the solution in question passes this.
Loading collection data...
Changed tests in Python and Ruby.
Ditto for Python description.
Same for the Java description - please rectify this in addition to fixing the test cases noted elsewhere in the comments.
This comment is hidden because it contains spoiler information about the solution
241 people solved this kata in Go, so I think there is no issue.
Please check your code. And next time, do not create an issue, if you are not sure for the reason for the failing test.
This comment is hidden because it contains spoiler information about the solution
There is a bug in java production test.
For n = 4 and greater even numbers properly result is:
[1, 1, 1, 1]
[0, 0, 0, 1]
[1, 0, 0, 1]
[1, 1, 1, 1]
your test result:
[1, 1, 1, 1]
[0, 0, 0, 1]
[1, .1., 0, 1]
[1, 1, 1, 1]
You are adding a one '1' too much, and it is necessary to remove last 1 from snake.
The description says “Because of the edge-cases for tiny spirals, the size will be at least 5.”
But Ruby's test go from 0 to 5+
Please change either tests or task description.
Spoiler!
Also fixed
Fixed
@
There is typo in Ruby version.
Starting code is:
so there is
-e:5: syntax error, unexpected ':'
Hell yeah, solution like this is wrong:
check_ages?([{:age=>40, :sex=>:m}, {:age=>19, :sex=>:m}], :m, 20)
will returntrue
insteadfalse
That's why I got it wrong, it needs ALL matched sex to have a superior number!
The task says returns true if all of the items matching the sex value have ages greater than the value provided.
I think the solution in question passes this.
This comment is hidden because it contains spoiler information about the solution
Loading more items...