You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2015/05/04 10:13:31 UTC
[3/4] lucenenet git commit: bring back the tests to match Lucene
bring back the tests to match Lucene
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/569f3028
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/569f3028
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/569f3028
Branch: refs/heads/master
Commit: 569f302818d8a01d659bada26c5f8d3eb357f9da
Parents: 9f5fa01
Author: Laimonas Simutis <la...@gmail.com>
Authored: Sun May 3 21:44:49 2015 -0400
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Sun May 3 21:44:49 2015 -0400
----------------------------------------------------------------------
.../core/Index/TestTermVectorsWriter.cs | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/569f3028/src/Lucene.Net.Tests/core/Index/TestTermVectorsWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestTermVectorsWriter.cs b/src/Lucene.Net.Tests/core/Index/TestTermVectorsWriter.cs
index 4f9fee0..9c8bff2 100644
--- a/src/Lucene.Net.Tests/core/Index/TestTermVectorsWriter.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestTermVectorsWriter.cs
@@ -136,8 +136,8 @@ namespace Lucene.Net.Index
Assert.AreEqual(4, dpEnum.EndOffset());
dpEnum.NextPosition();
- Assert.AreEqual(4, dpEnum.StartOffset());
- Assert.AreEqual(8, dpEnum.EndOffset());
+ Assert.AreEqual(5, dpEnum.StartOffset());
+ Assert.AreEqual(9, dpEnum.EndOffset());
Assert.AreEqual(DocIdSetIterator.NO_MORE_DOCS, dpEnum.NextDoc());
r.Dispose();
@@ -155,7 +155,7 @@ namespace Lucene.Net.Index
customType.StoreTermVectors = true;
customType.StoreTermVectorPositions = true;
customType.StoreTermVectorOffsets = true;
- Field f = NewField("field", "abcd ", customType);
+ Field f = NewField("field", "abcd ", customType);
doc.Add(f);
doc.Add(f);
w.AddDocument(doc);
@@ -190,7 +190,7 @@ namespace Lucene.Net.Index
IndexWriter w = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, analyzer));
Document doc = new Document();
IOException priorException = null;
- TokenStream stream = analyzer.TokenStream("field", new StringReader("abcd "));
+ TokenStream stream = analyzer.TokenStream("field", new StringReader("abcd "));
try
{
stream.Reset(); // TODO: weird to reset before wrapping with CachingTokenFilter... correct?
@@ -245,7 +245,7 @@ namespace Lucene.Net.Index
customType.StoreTermVectors = true;
customType.StoreTermVectorPositions = true;
customType.StoreTermVectorOffsets = true;
- Field f = NewField("field", "abcd the ", customType);
+ Field f = NewField("field", "abcd the", customType);
doc.Add(f);
doc.Add(f);
w.AddDocument(doc);
@@ -282,7 +282,7 @@ namespace Lucene.Net.Index
customType.StoreTermVectors = true;
customType.StoreTermVectorPositions = true;
customType.StoreTermVectorOffsets = true;
- Field f = NewField("field", "abcd the ", customType);
+ Field f = NewField("field", "abcd the ", customType);
Field f2 = NewField("field", "crunch man", customType);
doc.Add(f);
doc.Add(f2);
@@ -328,7 +328,7 @@ namespace Lucene.Net.Index
customType.StoreTermVectors = true;
customType.StoreTermVectorPositions = true;
customType.StoreTermVectorOffsets = true;
- Field f = NewField("field", " ", customType);
+ Field f = NewField("field", "", customType);
Field f2 = NewField("field", "crunch man", customType);
doc.Add(f);
doc.Add(f2);
@@ -371,7 +371,7 @@ namespace Lucene.Net.Index
Field f = NewField("field", "abcd", customType);
doc.Add(f);
- doc.Add(NewField("field", " ", customType));
+ doc.Add(NewField("field", "", customType));
Field f2 = NewField("field", "crunch", customType);
doc.Add(f2);