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.
I am going to close this issue as obsolete. I cannot reproduce the problem now, but it was most probably caused by overwriting the name
test
in concatenated test fixture, which does not happen anymore.If the issue persists or comes back, please re-reaise.
Hi, that isList method of yours is not a good practice. Having this function, that only does exactly one function which is inside is not very good. You can just use it explicitely there
How have do you converted it to normal int? I'm trying to do
[[int(j) for j in result[i]] for i in range(9)]
or with map() to convert from numpy to a list of ints and it's slowing down too muchEdited : i've used arr.tolist() but it's still too slow ;_; guess my solution is not good enough
you could use isinstance func explicitly in same_structure_as func
Thank you. Hope they could fix it soon.
Currently Codewars platform is experiencing issues.
https://github.com/Codewars/codewars.com/issues/893
Time: 474ms Passed: 516 Failed: 0
I passed all the tests but can't submit the solution and didn't get any error information.
Could anyone explain what could be the cause?
Thank you for your information. Now I know the reason. I used numpy, so the dtype in my answer is 'numpy.int64' rather than 'int'. After I converted dtype to int, I pass the test. It seems this issue only occurs for multiple solution sudoku. Why do you check data type for multiple solution sudoku?
I'm doing the following line in the assertions:
now I don't know why you're solution isn't completly iterable but I may assume something wrong?
Tell me if you find something please!
Thanks
I got the following test error message:
✘ You're solution shound only contains int: False should equal True
Could anyone explain what happend? It can be easily checked that the solution is a valid one(if my understanding about this game is right.)
The problem is
[[0, 8, 0, 0, 0, 9, 7, 4, 3], [0, 5, 0, 0, 0, 8, 0, 1, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0], [8, 0, 0, 0, 0, 5, 0, 0, 0], [0, 0, 0, 8, 0, 4, 0, 0, 0], [0, 0, 0, 3, 0, 0, 0, 0, 6], [0, 0, 0, 0, 0, 0, 0, 7, 0], [0, 3, 0, 5, 0, 0, 0, 8, 0], [9, 7, 2, 4, 0, 0, 0, 5, 0]]
The solution I get was:
[[2, 8, 6, 1, 5, 9, 7, 4, 3], [3, 5, 4, 7, 6, 8, 9, 1, 2], [7, 1, 9, 2, 4, 3, 5, 6, 8], [8, 9, 3, 6, 1, 5, 4, 2, 7], [6, 2, 7, 8, 9, 4, 1, 3, 5], [1, 4, 5, 3, 2, 7, 8, 9, 6], [5, 6, 8, 9, 3, 1, 2, 7, 4], [4, 3, 1, 5, 7, 2, 6, 8, 9], [9, 7, 2, 4, 8, 6, 3, 5, 1]]
✘ You're solution shound only contains int: False should equal True
github issue submitted: https://github.com/Codewars/codewars.com/issues/649
Similar error today (not only on this kata by the way)
I have the following when I try to test my code:
Time: 125ms Passed: 0 Failed: 0 Errors: 1
Test Results:
STDERR:
Test Results:
Traceback:
in
AttributeError: 'module' object has no attribute 'expect_equals'.
???
Test Results:
Traceback:
in
AttributeError: 'module' object has no attribute 'expect_equals'
Is the test module not available now??
Traceback:
in
AttributeError: 'module' object has no attribute 'expect_equals'
-------What does this mean??
Traceback:
in
AttributeError: 'module' object has no attribute 'expect_equals'
What does this mean????
Loading more items...