* @author Nathan Wells
*/
public class KhmerSpaceBeforeRuleTest extends TestCase {
public void testSpaceBeforeRule() throws IOException {
final Khmer language = new Khmer();
KhmerSpaceBeforeRule rule = new KhmerSpaceBeforeRule(TestTools.getEnglishMessages(), language);
JLanguageTool langTool = new JLanguageTool(language);
// correct sentences:
assertEquals(0, rule.match(langTool.getAnalyzedSentence("គាត់បានទៅ ដើម្បីទិញម្ហូប។")).length);
assertEquals(0, rule.match(langTool.getAnalyzedSentence("ខ្ញុំ និងគាត់។")).length);