Revision: 9023
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=9023&view=rev
Author:   jaumeortola
Date:     2013-01-14 22:09:15 +0000 (Mon, 14 Jan 2013)
Log Message:
-----------
A small change in PatternRuleTest.java that allows testing multiple corrections 
in the grammar rules. Example:

<message>Cal dir: <suggestion><match no="1" include_skipped="all"/> <match 
no="3"/></suggestion>, <suggestion><match no="1" include_skipped="all"/> a 
<match no="3"/></suggestion>.</message>
<example type="incorrect" correction="donava menjar, donava a menjar">Li 
<marker>donava de menjar</marker>.</example>

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

Modified: 
trunk/JLanguageTool/src/test/java/org/languagetool/rules/patterns/PatternRuleTest.java
===================================================================
--- 
trunk/JLanguageTool/src/test/java/org/languagetool/rules/patterns/PatternRuleTest.java
      2013-01-14 20:19:49 UTC (rev 9022)
+++ 
trunk/JLanguageTool/src/test/java/org/languagetool/rules/patterns/PatternRuleTest.java
      2013-01-14 22:09:15 UTC (rev 9023)
@@ -440,7 +440,7 @@
             assertTrue(lang + ": Incorrect suggestions: "
                 + suggestedCorrections.toString() + " != "
                 + matches.get(0).getSuggestedReplacements() + " for rule " + 
rule + " on input: " + badSentence,
-                
suggestedCorrections.equals(matches.get(0).getSuggestedReplacements()));
+                
suggestedCorrections.toString().equals(matches.get(0).getSuggestedReplacements().toString()));
           }
           // make sure the suggested correction doesn't produce an error:
           if (matches.get(0).getSuggestedReplacements().size() > 0) {

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to