package com.fishercoder;

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

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import static org.junit.Assert.assertEquals;

/**
 * Created by stevesun on 6/5/17.
 */
public class _127Test {
    private static _127 test;
    private static Set<String> wordList;

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

    @Test
    public void test1(){
        wordList = new HashSet<>(Arrays.asList("hot","dot","dog","lot","log"));
        assertEquals(0, test.ladderLength("hit", "cog", wordList));
    }

    @Test
    public void test2(){
        wordList = new HashSet<>(Arrays.asList("hot","dot","dog","lot","log","cog"));
        assertEquals(5, test.ladderLength("hit", "cog", wordList));
    }
}

@@ -134,17 +134,20 @@
 il.Array
-s
+List
 ;%0Aimport
@@ -157,23 +157,22 @@
 va.util.
-HashSet
+Arrays
 ;%0Aimport
@@ -182,18 +182,19 @@
 va.util.
-Se
+Lis
 t;%0A%0Aimpo
@@ -350,18 +350,19 @@
  static 
-Se
+Lis
 t%3CString
@@ -507,38 +507,40 @@
  wordList = new 
-HashSe
+ArrayLis
 t%3C%3E(Arrays.asLis
@@ -711,14 +711,16 @@
 new 
-HashSe
+ArrayLis
 t%3C%3E(

fix build