lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [18/47] lucenenet git commit: Added Codecs.BlockTerms tests to the project
Date Tue, 11 Oct 2016 18:35:03 GMT
Added Codecs.BlockTerms tests to the project


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/4524df49
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/4524df49
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/4524df49

Branch: refs/heads/master
Commit: 4524df4933c381e91bbad99ada80235556b7f11f
Parents: c4bd905
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Oct 10 23:51:42 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Oct 11 00:26:21 2016 +0700

----------------------------------------------------------------------
 .../BlockTerms/TestFixedGapPostingsFormat.cs    | 47 ++++++++++----------
 .../Lucene.Net.Tests.Codecs.csproj              |  1 +
 2 files changed, 24 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4524df49/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
index 11aa1b8..a66f96c 100644
--- a/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/BlockTerms/TestFixedGapPostingsFormat.cs
@@ -1,7 +1,11 @@
-´╗┐namespace org.apache.lucene.codecs.blockterms
-{
+´╗┐using Lucene.Net.Codecs.Lucene41Ords;
+using Lucene.Net.Index;
+using Lucene.Net.Util;
+using NUnit.Framework;
 
-	/*
+namespace Lucene.Net.Codecs.BlockTerms
+{
+    /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more
 	 * contributor license agreements.  See the NOTICE file distributed with
 	 * this work for additional information regarding copyright ownership.
@@ -18,26 +22,21 @@
 	 * limitations under the License.
 	 */
 
-	using Lucene41WithOrds = org.apache.lucene.codecs.lucene41ords.Lucene41WithOrds;
-	using BasePostingsFormatTestCase = org.apache.lucene.index.BasePostingsFormatTestCase;
-	using TestUtil = org.apache.lucene.util.TestUtil;
-
-	/// <summary>
-	/// Basic tests of a PF using FixedGap terms dictionary
-	/// </summary>
-	// TODO: we should add an instantiation for VarGap too to TestFramework, and a test in this
package
-	// TODO: ensure both of these are also in rotation in RandomCodec
-	public class TestFixedGapPostingsFormat : BasePostingsFormatTestCase
-	{
-	  private readonly Codec codec = TestUtil.alwaysPostingsFormat(new Lucene41WithOrds());
-
-	  protected internal override Codec Codec
-	  {
-		  get
-		  {
-			return codec;
-		  }
-	  }
-	}
+    /// <summary>
+    /// Basic tests of a PF using FixedGap terms dictionary
+    /// </summary>
+    // TODO: we should add an instantiation for VarGap too to TestFramework, and a test in
this package
+    // TODO: ensure both of these are also in rotation in RandomCodec
+    public class TestFixedGapPostingsFormat : BasePostingsFormatTestCase
+    {
+        private readonly Codec codec = TestUtil.AlwaysPostingsFormat(new Lucene41WithOrds());
 
+        protected override Codec Codec
+        {
+            get
+            {
+                return codec;
+            }
+        }
+    }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4524df49/src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj b/src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj
index 991be3c..90e9d38 100644
--- a/src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj
+++ b/src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj
@@ -42,6 +42,7 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="BlockTerms\TestFixedGapPostingsFormat.cs" />
     <Compile Include="DiskDv\TestDiskDocValuesFormat.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="SimpleText\TestSimpleTextDocValuesFormat.cs" />


Mime
View raw message