package com.fishercoder;

import com.fishercoder.solutions._533;
import org.junit.BeforeClass;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Created by fishercoder on 5/25/17.
 */
public class _533Test {
    private static _533 test;
    private static char[][] picture;

    @BeforeClass
    public static void setup(){
        test = new _533();
    }

    @Test
    public void test1(){
        picture = new char[][]{
                {'W', 'B', 'W', 'B', 'B', 'W'},
                {'W', 'B', 'W', 'B', 'B', 'W'},
                {'W', 'B', 'W', 'B', 'B', 'W'},
                {'W', 'W', 'B', 'W', 'B', 'W'}};
        assertEquals(6, test.findBlackPixel(picture, 3));
    }

    @Test
    public void test2(){
        picture = new char[][]{{'B'}};
        assertEquals(1, test.findBlackPixel(picture, 1));
    }
}

@@ -88,16 +88,41 @@
 eClass;%0A
+import org.junit.Ignore;%0A
 import o
@@ -721,32 +721,34 @@
 re, 3));%0A    %7D%0A%0A
+//
     @Test%0A    pu
@@ -733,32 +733,34 @@
  %7D%0A%0A//    @Test%0A
+//
     public void 
@@ -764,24 +764,26 @@
 id test2()%7B%0A
+//
         pict
@@ -805,24 +805,26 @@
 %5D%5B%5D%7B%7B'B'%7D%7D;%0A
+//
         asse
@@ -865,20 +865,22 @@
 cture, 1));%0A
+//
     %7D%0A%7D%0A

comment out unstable test