package cscie99.team2.lingolearn.server.confuser;

@@ -43,8 +43,1874 @@
 nfuser;%0A
+%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.List;%0A%0Aimport cscie99.team2.lingolearn.shared.Card;%0A%0A/**%0A * This class tests to make sure that the values being generated by the confuser algorithm are valid.%0A */%0Apublic class ConfuserTest %7B%0A  // The confuser instance to use for tests%0A  private static Confuser confuser;%0A  %0A  /**%0A   * Make sure the confuser algorithm code is using the correct data.%0A   */%0A  @Before%0A  public void setUp() %7B%0A    // TODO Extend this with the correct resource file path%0A    this.confuser = new Confuser();%0A  %7D%0A  %0A  %0A  /**%0A   * Test to make sure kanji subsitution works correctly.%0A   */%0A  @Test%0A  public void kanjiSubsitutionTest() %7B%0A    fail(%22Not implimented%22);%0A  %7D%0A%0A  /**%0A   * Test to make sure that we can extend kanji with valid hiragana.%0A   */%0A  @Test%0A  public void kanjiBoundriesTest() %7B%0A    // Test to make sure %E9%9D%92%E3%81%84 (blue) is extended correctly%0A    Card card = new Card();%0A    card.setKanji(%22%E9%9D%92%E3%81%84%22);%0A    card.setHiragana(%22%E3%81%82%E3%81%8A%E3%81%84%22);%0A    List%3CString%3E results = confuser.getKanjiBoundries(card);%0A    assertEquals(1, results.size());%0A    assertEquals(results.get(0), %22%E9%9D%92%E3%81%8A%E3%81%84%22);%0A    %0A    // TODO Test to make sure %E8%A9%B1%E3%81%99 is extended correctly%0A    %0A    // TODO Test to make sure %E9%A3%9F%E3%81%B9%E9%9B%A3%E3%81%84 is extended correctly%0A    %0A    // TODO Test to make sure %E3%81%8A%E7%B5%90%E3%81%B3 is extended correctly%0A    %0A  %7D%0A  %0A  /**%0A   * Test to make sure vowels are elongated correctly for hiragana%0A   * and katagana words.%0A   */%0A  @Test%0A  public void vowelElongationTest() %7B%0A    fail(%22Not implimented%22);%0A  %7D%0A  %0A  /**%0A   * Test to make sure the small tsu character (%E3%83%83) is being manipulated %0A   * correctly.%0A   */%0A  @Test%0A  public void smallTsuManipulation() %7B%0A    fail(%22Not implimented%22);%0A  %7D%0A  %0A  /**%0A   * Test to make sure the n character (%E3%82%93, %E3%83%B3) is being manipulated %0A   * correctly for hiragana and katakana.%0A   */%0A  @Test%0A  public void nManipulation() %7B%0A    fail(%22Not implimented%22);%0A  %7D%0A%7D%0A

Update ConfuserTest.java