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.
whilst true, I find my solution easy to follow, not that I program much.
thank you, now passing 4/6 :)
Re-run in my ide and the input is only read from as I can print the input, run fill with the input, print input, and input is not changed
Hi all,
a bit stuck with large fill test, [0,0] should be zero however, my solution sets it to 1 because it is not in the surrounded by 1's space from the starting point? sample tests run fine, where am I going wrong?
testFillLarge(FillTest)
Log
java.awt.Point[x=2,y=2]
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0},
{0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
arrays first differed at element [0][0]; expected:0 but was:1
Exception Details
arrays first differed at element [0][0]; expected:0 but was:1
at org.junit.Assert.internalArrayEquals(Assert.java:532)
at org.junit.Assert.assertArrayEquals(Assert.java:283)
at org.junit.Assert.assertArrayEquals(Assert.java:298)
at org.junit.Assert.assertEquals(Assert.java:893)
at FillTest.testFillLarge(FillTest.java:45)
Caused by: java.lang.AssertionError: expected:<0> but was:<1>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:144)
... 82 more
Mines spits out
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1]
[1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1]
[1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]
[1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1]
[1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Stuck, passes initial tests in java, array lengths do not match on attempt :(, no other information given
This comment is hidden because it contains spoiler information about the solution