Revision: 8750
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8750&view=rev
Author:   dnaber
Date:     2012-12-31 18:46:34 +0000 (Mon, 31 Dec 2012)
Log Message:
-----------
[de] add another spell checker test

Modified Paths:
--------------
    
trunk/JLanguageTool/src/test/java/org/languagetool/rules/HunspellRuleTest.java

Modified: 
trunk/JLanguageTool/src/test/java/org/languagetool/rules/HunspellRuleTest.java
===================================================================
--- 
trunk/JLanguageTool/src/test/java/org/languagetool/rules/HunspellRuleTest.java  
    2012-12-31 18:20:41 UTC (rev 8749)
+++ 
trunk/JLanguageTool/src/test/java/org/languagetool/rules/HunspellRuleTest.java  
    2012-12-31 18:46:34 UTC (rev 8750)
@@ -63,12 +63,15 @@
   private void commonGermanAsserts(HunspellRule rule, JLanguageTool langTool) 
throws IOException {
     assertEquals(0, rule.match(langTool.getAnalyzedSentence("Der 
Waschmaschinentestversuch")).length);  // compound
     assertEquals(0, rule.match(langTool.getAnalyzedSentence("Der 
Waschmaschinentest-Versuch")).length);  // compound
+    assertEquals(0, rule.match(langTool.getAnalyzedSentence("Der 
Arbeitnehmer")).length);
+    assertEquals(0, rule.match(langTool.getAnalyzedSentence("Die 
Verhaltensänderung")).length);
 
     assertEquals(1, rule.match(langTool.getAnalyzedSentence("Der 
Waschmaschinentest-Dftgedgs")).length);
     assertEquals(1, rule.match(langTool.getAnalyzedSentence("Der 
Dftgedgs-Waschmaschinentest")).length);
     assertEquals(1, rule.match(langTool.getAnalyzedSentence("Der 
Waschmaschinentestdftgedgs")).length);
     assertEquals(1, rule.match(langTool.getAnalyzedSentence("Der 
Waschmaschinentestversuch orkt")).length);
-    assertEquals(1, rule.match(langTool.getAnalyzedSentence("Der 
Arbeitsnehmer")).length);  // wrong infix
+    assertEquals(1, rule.match(langTool.getAnalyzedSentence("Der 
Arbeitsnehmer")).length);  // wrong interfix
+    assertEquals(1, rule.match(langTool.getAnalyzedSentence("Die 
Verhaltenänderung")).length);  // missing interfix
     assertEquals(2, rule.match(langTool.getAnalyzedSentence("Der asdegfue 
orkt")).length);
   }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Languagetool-commits mailing list
Languagetool-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to