Revision: 6167
http://languagetool.svn.sourceforge.net/languagetool/?rev=6167&view=rev
Author: dnaber
Date: 2012-01-05 23:02:48 +0000 (Thu, 05 Jan 2012)
Log Message:
-----------
tiny cleanup: rename var
Modified Paths:
--------------
trunk/JLanguageTool/src/test/org/languagetool/AnalyzedTokenReadingsTest.java
Modified:
trunk/JLanguageTool/src/test/org/languagetool/AnalyzedTokenReadingsTest.java
===================================================================
---
trunk/JLanguageTool/src/test/org/languagetool/AnalyzedTokenReadingsTest.java
2012-01-05 18:47:30 UTC (rev 6166)
+++
trunk/JLanguageTool/src/test/org/languagetool/AnalyzedTokenReadingsTest.java
2012-01-05 23:02:48 UTC (rev 6167)
@@ -24,35 +24,35 @@
public class AnalyzedTokenReadingsTest extends TestCase {
public void testNewTags() {
- AnalyzedTokenReadings testanaTokRead = new AnalyzedTokenReadings(new
AnalyzedToken("word", "POS", "lemma"));
- assertEquals(false, testanaTokRead.isLinebreak());
- assertEquals(false, testanaTokRead.isSentEnd());
- assertEquals(false, testanaTokRead.isParaEnd());
- assertEquals(false, testanaTokRead.isSentStart());
- testanaTokRead.setSentEnd();
- assertEquals(false, testanaTokRead.isSentStart());
- assertEquals(true, testanaTokRead.isSentEnd());
+ AnalyzedTokenReadings tokenReadings = new AnalyzedTokenReadings(new
AnalyzedToken("word", "POS", "lemma"));
+ assertEquals(false, tokenReadings.isLinebreak());
+ assertEquals(false, tokenReadings.isSentEnd());
+ assertEquals(false, tokenReadings.isParaEnd());
+ assertEquals(false, tokenReadings.isSentStart());
+ tokenReadings.setSentEnd();
+ assertEquals(false, tokenReadings.isSentStart());
+ assertEquals(true, tokenReadings.isSentEnd());
//test SEND_END or PARA_END added without directly via addReading
//which is possible e.g. in rule disambiguator
- testanaTokRead = new AnalyzedTokenReadings(new AnalyzedToken("word", null,
"lemma"));
- testanaTokRead.addReading(new AnalyzedToken("word", "SENT_END", null));
- assertEquals(true, testanaTokRead.isSentEnd());
- assertEquals(false, testanaTokRead.isParaEnd());
- testanaTokRead.addReading(new AnalyzedToken("word", "PARA_END", null));
- assertEquals(true, testanaTokRead.isParaEnd());
- assertEquals(false, testanaTokRead.isSentStart());
+ tokenReadings = new AnalyzedTokenReadings(new AnalyzedToken("word", null,
"lemma"));
+ tokenReadings.addReading(new AnalyzedToken("word", "SENT_END", null));
+ assertEquals(true, tokenReadings.isSentEnd());
+ assertEquals(false, tokenReadings.isParaEnd());
+ tokenReadings.addReading(new AnalyzedToken("word", "PARA_END", null));
+ assertEquals(true, tokenReadings.isParaEnd());
+ assertEquals(false, tokenReadings.isSentStart());
//but you can't add SENT_START to a non-empty token
//and get isSentStart == true
- testanaTokRead.addReading(new AnalyzedToken("word", "SENT_START", null));
- assertEquals(false, testanaTokRead.isSentStart());
+ tokenReadings.addReading(new AnalyzedToken("word", "SENT_START", null));
+ assertEquals(false, tokenReadings.isSentStart());
AnalyzedToken aTok = new AnalyzedToken("word", "POS", "lemma");
aTok.setWhitespaceBefore(true);
- testanaTokRead = new AnalyzedTokenReadings(aTok);
- assertEquals(aTok, testanaTokRead.getAnalyzedToken(0));
+ tokenReadings = new AnalyzedTokenReadings(aTok);
+ assertEquals(aTok, tokenReadings.getAnalyzedToken(0));
AnalyzedToken aTok2 = new AnalyzedToken("word", "POS", "lemma");
- assertTrue(!aTok2.equals(testanaTokRead.getAnalyzedToken(0)));
+ assertTrue(!aTok2.equals(tokenReadings.getAnalyzedToken(0)));
AnalyzedToken aTok3 = new AnalyzedToken("word", "POS", "lemma");
aTok3.setWhitespaceBefore(true);
- assertEquals(aTok3, testanaTokRead.getAnalyzedToken(0));
+ assertEquals(aTok3, tokenReadings.getAnalyzedToken(0));
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs