Revision: 7260
http://languagetool.svn.sourceforge.net/languagetool/?rev=7260&view=rev
Author: milek_pl
Date: 2012-06-06 08:31:36 +0000 (Wed, 06 Jun 2012)
Log Message:
-----------
add more comments to explain
Modified Paths:
--------------
trunk/JLanguageTool/src/test/org/languagetool/rules/patterns/UnifierTest.java
Modified:
trunk/JLanguageTool/src/test/org/languagetool/rules/patterns/UnifierTest.java
===================================================================
---
trunk/JLanguageTool/src/test/org/languagetool/rules/patterns/UnifierTest.java
2012-06-06 08:20:28 UTC (rev 7259)
+++
trunk/JLanguageTool/src/test/org/languagetool/rules/patterns/UnifierTest.java
2012-06-06 08:31:36 UTC (rev 7260)
@@ -365,7 +365,7 @@
//OK, so let's test it with something that is not correct
satisfied = true; //this must be true to start with...
satisfied &= uni.isUnified(det_sing_fem, equiv, true, true);
- satisfied &= uni.isUnified(sing_masc, equiv, true, true);
+ satisfied &= uni.isUnified(sing_masc, equiv, true, true); //mismatch:
hence satisfied == "true"
satisfied &= uni.isUnified(subst_sing_masc, equiv, true, true);
assertEquals(true, satisfied);
uni.reset();
@@ -373,7 +373,7 @@
//OK, so let's test it with something that is not correct
satisfied = true; //this must be true to start with...
satisfied &= uni.isUnified(det_sing_masc, equiv, true, true);
- satisfied &= uni.isUnified(sing_fem, equiv, true, true);
+ satisfied &= uni.isUnified(sing_fem, equiv, true, true); //mismatch:
hence satisfied == "true"
satisfied &= uni.isUnified(subst_sing_masc, equiv, true, true);
assertEquals(true, satisfied);
uni.reset();
@@ -382,7 +382,7 @@
/* I think there's an error here -- the negation is applied too soon...
satisfied = true; //this must be true to start with...
satisfied &= uni.isUnified(det_sing_masc, equiv, true, true);
- satisfied &= uni.isUnified(sing_masc, equiv, true, true);
+ satisfied &= uni.isUnified(sing_masc, equiv, true, true); //match: hence
satisfied == "false"...
satisfied &= uni.isUnified(subst_sing_fem, equiv, true, true);
assertEquals(true, satisfied);
uni.reset();
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs