This issue is fixed
The issue is fixed
PHP translation
For Golang:
Something wrong with the random tests
Random tests Log [^][ ][ ]__ [x][ ][ ]__ [ ][ ][ ] Arrow is aimed: true
Expected : true to equal : false
The same program in vscode:
[^][ ][ ]_ [x][ ][ ]_ [ ][ ][ ]_ Arrow is aimed: false
Random tests Log [ ][ ][ ][ ][ ]__ [ ][ ][ ][ ][ ]__ [ ][ ][ ][ ][ ]__ [ ][ ][ ][x][ ]__ [^][ ][ ][ ][ ]__ Arrow is aimed: true
[ ][ ][ ][ ][ ]__ [ ][ ][ ][ ][ ]__ [ ][ ][ ][ ][ ]__ [ ][ ][ ][x][ ]__ [^][ ][ ][ ][ ]__ Arrow is aimed: false
!!!!!!! ============= !!!!!!!!
Another ramdom tests case:
[ ][ ][ ][ ][ ]__ [>][ ][ ][ ][x]__ [ ][ ][ ][ ][ ]__ [ ][ ][ ][ ][ ]__ [ ][ ][ ][ ][ ]__ Arrow is aimed: true
Why false is expected here?
Approved by someone
Very nice kata.
If I'm understand the random test output correctly for golang, I'm seeing random tests like this:
[[0 0 0 0 0] [0 0 0 0 x] [0 0 0 0 0] [0 0 0 0 ^] [0 0 0 0 0]]
which expects the answer to be false.
Similar:
[[0 0 v] [0 0 0] [0 0 x]]
Where 118 is v and 120 is x
118
v
120
x
The test is expecting this as false...
Random tests are even failing on some 3x3s, but I've added every combo of <>^v and x possible in a 3x3 grid, with correct expected results in a 3x3 grid to the sample tests and they all pass.
It looks like Go random test cases are bugged. Sometimes the expected solution is wrong. Take a look please.
#11b30/3q6:0z:vV
i thought the problem was what you describe and i solved it accordingly
Good job, it turned out really interesting kata
@Ruscore I created a continuation of the Kata https://www.codewars.com/kata/62bc86a35e6abb0024477341 with barriers and in 3d.
Reference solution returns true for this case:
true
Expect(Solution([][]rune{{' ', ' ', ' '}, {' ', '>', 'x'}})).To(Equal(true))
I guess you're doing something wrong, or I misunderstand something. Can you give the whole input?
Is Go translation ok?
> is at 1 1 x is at 1 2 Test Failed Log Expected <bool>: true to equal <bool>: false
Loading collection data...
This issue is fixed
The issue is fixed
PHP translation
PHP translation
For Golang:
Something wrong with the random tests
Random tests
Log
[^][ ][ ]__
[x][ ][ ]__
[ ][ ][ ]
Arrow is aimed: true
Expected
: true
to equal
: false
The same program in vscode:
[^][ ][ ]_
[x][ ][ ]_
[ ][ ][ ]_
Arrow is aimed: false
Random tests
Log
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][x][ ]__
[^][ ][ ][ ][ ]__
Arrow is aimed: true
Expected
: true
to equal
: false
The same program in vscode:
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][x][ ]__
[^][ ][ ][ ][ ]__
Arrow is aimed: false
!!!!!!! ============= !!!!!!!!
Another ramdom tests case:
[ ][ ][ ][ ][ ]__
[>][ ][ ][ ][x]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
[ ][ ][ ][ ][ ]__
Arrow is aimed: true
Expected
: true
to equal
: false
Why false is expected here?
Approved by someone
Very nice kata.
If I'm understand the random test output correctly for golang, I'm seeing random tests like this:
which expects the answer to be false.
Similar:
Where
118
isv
and120
isx
The test is expecting this as false...
Random tests are even failing on some 3x3s, but I've added every combo of <>^v and x possible in a 3x3 grid, with correct expected results in a 3x3 grid to the sample tests and they all pass.
It looks like Go random test cases are bugged.
Sometimes the expected solution is wrong.
Take a look please.
#11b30/3q6:0z:vV
i thought the problem was what you describe
and i solved it accordingly
Good job, it turned out really interesting kata
@Ruscore I created a continuation of the Kata https://www.codewars.com/kata/62bc86a35e6abb0024477341 with barriers and in 3d.
@Ruscore I created a continuation of the Kata https://www.codewars.com/kata/62bc86a35e6abb0024477341 with barriers and in 3d.
Reference solution returns
true
for this case:I guess you're doing something wrong, or I misunderstand something. Can you give the whole input?
Is Go translation ok?
Loading more items...