Revision: 9508
http://languagetool.svn.sourceforge.net/languagetool/?rev=9508&view=rev
Author: milek_pl
Date: 2013-03-01 11:59:32 +0000 (Fri, 01 Mar 2013)
Log Message:
-----------
small change to make assertions more standard
Modified Paths:
--------------
trunk/languagetool/languagetool-core/src/test/java/org/languagetool/tagging/disambiguation/rules/DisambiguationRuleTest.java
Modified:
trunk/languagetool/languagetool-core/src/test/java/org/languagetool/tagging/disambiguation/rules/DisambiguationRuleTest.java
===================================================================
---
trunk/languagetool/languagetool-core/src/test/java/org/languagetool/tagging/disambiguation/rules/DisambiguationRuleTest.java
2013-03-01 11:58:46 UTC (rev 9507)
+++
trunk/languagetool/languagetool-core/src/test/java/org/languagetool/tagging/disambiguation/rules/DisambiguationRuleTest.java
2013-03-01 11:59:32 UTC (rev 9508)
@@ -166,10 +166,10 @@
break;
}
}
- assertTrue("The input form for the rule " + id + " in the example: "
+ assertEquals("The input form for the rule " + id + " in the example:
"
+ example.toString() + " is different than expected (expected "
+ inputForms + " but got " + sortForms(reading) + "). The token
has been changed by the disambiguator: " + annotations,
- sortForms(reading).equals(inputForms));
+ inputForms, sortForms(reading));
for (final AnalyzedTokenReadings readings :
disambiguatedSent.getTokens()) {
if (readings.isSentStart() && !outputForms.contains("<S>")) {
continue;
@@ -182,10 +182,10 @@
break;
}
}
- assertTrue("The output form for the rule " + id + " in the example: "
+ assertEquals("The output form for the rule " + id + " in the
example: "
+ example.toString() + " is different than expected (expected "
+ outputForms + " but got " + sortForms(reading) + "). The token
has been changed by the disambiguator: " + annotations,
- sortForms(reading).equals(outputForms));
+ outputForms, sortForms(reading));
}
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits