예제 #1
0
 @Test
 public void fillRandomlyAssymetric() {
   Boggle boggle = new Boggle(4, 2);
   boggle.fillRandomly(77868L);
   System.out.println(boggle);
   assertEquals("X, D, F, T\nW, H, B, B\n", boggle.toString());
 }
예제 #2
0
  @Test
  public void test() {

    char[][] letters = {{'W', 'A'}, {'D', 'R'}};

    List<String> expected = new ArrayList<String>();
    Boggle boggle = new Boggle();

    assertEquals(expected, boggle.getAllWords(letters));
  }
예제 #3
0
 @Test
 public void fillRandomly() {
   Boggle boggle = new Boggle(4, 4);
   boggle.fillRandomly(77868L);
   assertEquals("X, F, I, S\nW, B, K, L\nD, T, I, L\nH, B, O, E\n", boggle.toString());
 }