package org.languagetool.openoffice;

import junit.framework.TestCase;

public class KhmerDetectorTest extends TestCase {
  
  public void testIsKhmer() {
    final KhmerDetector detector = new KhmerDetector();
    
    assertTrue(detector.isKhmer("ប៉ុ"));
    assertTrue(detector.isKhmer("ប៉ុន្តែ​តើ"));
    assertTrue(detector.isKhmer("ហើយដោយ​ព្រោះ​"));
    
    assertFalse(detector.isKhmer("Hallo"));
    assertFalse(detector.isKhmer("öäü"));

    assertFalse(detector.isKhmer(""));
    try {
      assertFalse(detector.isKhmer(null));
      fail();
    } catch (NullPointerException expected) {}
  }
  
}

@@ -349,24 +349,69 @@
 %E1%9F%84%E1%9F%87%E2%80%8B%22));%0A    
+assertTrue(detector.isKhmer(%22%C2%AB%E1%9E%91%E1%9F%85%E2%80%8B%E1%9E%94%E1%9E%B6%E1%9E%93%E2%80%8B%E1%9F%94 %C2%AB%22));%0A
 %0A    assertF

add assert