lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r832583 - in /incubator/lucene.net/trunk/C#/src/Test: Index/TestIndexReaderClone.cs Index/TestIndexReaderCloneNorms.cs Index/index.24.cfs.zip Index/index.24.nocfs.zip Search/Function/TestFieldScoreQuery.cs
Date Tue, 03 Nov 2009 22:43:34 GMT
Author: aroush
Date: Tue Nov  3 22:43:29 2009
New Revision: 832583

URL: http://svn.apache.org/viewvc?rev=832583&view=rev
Log:
Apache Lucene.Net 2.9.0 build 001 "Alpha" (with Test code port)

Added:
    incubator/lucene.net/trunk/C#/src/Test/Index/index.24.cfs.zip   (with props)
    incubator/lucene.net/trunk/C#/src/Test/Index/index.24.nocfs.zip   (with props)
Modified:
    incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexReaderClone.cs
    incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexReaderCloneNorms.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/Function/TestFieldScoreQuery.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexReaderClone.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Index/TestIndexReaderClone.cs?rev=832583&r1=832582&r2=832583&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexReaderClone.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexReaderClone.cs Tue Nov  3 22:43:29
2009
@@ -71,7 +71,7 @@
 			System.String tempDir = System.IO.Path.GetTempPath();
 			if (tempDir == null)
 				throw new System.IO.IOException("java.io.tmpdir undefined, cannot run test");
-			System.IO.FileInfo indexDir2 = new System.IO.FileInfo(tempDir + "\\" + "FSDirIndexReaderClone");
+			System.IO.FileInfo indexDir2 = new System.IO.FileInfo(System.IO.Path.Combine(tempDir,
"FSDirIndexReaderClone"));
 			
 			Directory dir1 = FSDirectory.GetDirectory(indexDir2);
 			TestIndexReaderReopen.CreateIndex(dir1, false);

Modified: incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexReaderCloneNorms.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Index/TestIndexReaderCloneNorms.cs?rev=832583&r1=832582&r2=832583&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexReaderCloneNorms.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexReaderCloneNorms.cs Tue Nov  3 22:43:29
2009
@@ -110,7 +110,7 @@
 			}
 			
 			// test with a single index: index1
-			System.IO.FileInfo indexDir1 = new System.IO.FileInfo(tempDir + "\\" + "lucenetestindex1");
+			System.IO.FileInfo indexDir1 = new System.IO.FileInfo(System.IO.Path.Combine(tempDir,
"lucenetestindex1"));
 			Directory dir1 = FSDirectory.Open(indexDir1);
 			IndexWriter.Unlock(dir1);
 			
@@ -129,14 +129,14 @@
 			modifiedNorms = new System.Collections.ArrayList();
 			numDocNorms = 0;
 			
-			System.IO.FileInfo indexDir2 = new System.IO.FileInfo(tempDir + "\\" + "lucenetestindex2");
+			System.IO.FileInfo indexDir2 = new System.IO.FileInfo(System.IO.Path.Combine(tempDir,
"lucenetestindex2"));
 			Directory dir2 = FSDirectory.Open(indexDir2);
 			
 			CreateIndex(dir2);
 			DoTestNorms(dir2);
 			
 			// add index1 and index2 to a third index: index3
-			System.IO.FileInfo indexDir3 = new System.IO.FileInfo(tempDir + "\\" + "lucenetestindex3");
+			System.IO.FileInfo indexDir3 = new System.IO.FileInfo(System.IO.Path.Combine(tempDir,
"lucenetestindex3"));
 			Directory dir3 = FSDirectory.Open(indexDir3);
 			
 			CreateIndex(dir3);

Added: incubator/lucene.net/trunk/C#/src/Test/Index/index.24.cfs.zip
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Index/index.24.cfs.zip?rev=832583&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lucene.net/trunk/C#/src/Test/Index/index.24.cfs.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/lucene.net/trunk/C#/src/Test/Index/index.24.nocfs.zip
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Index/index.24.nocfs.zip?rev=832583&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/lucene.net/trunk/C#/src/Test/Index/index.24.nocfs.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/Function/TestFieldScoreQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/Function/TestFieldScoreQuery.cs?rev=832583&r1=832582&r2=832583&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/Function/TestFieldScoreQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/Function/TestFieldScoreQuery.cs Tue Nov
 3 22:43:29 2009
@@ -191,7 +191,7 @@
 		{
 			// prepare expected array types for comparison
 			System.Collections.Hashtable expectedArrayTypes = new System.Collections.Hashtable();
-			expectedArrayTypes[FieldScoreQuery.Type.BYTE] = new sbyte[0];
+			expectedArrayTypes[FieldScoreQuery.Type.BYTE] = new byte[0];
 			expectedArrayTypes[FieldScoreQuery.Type.SHORT] = new short[0];
 			expectedArrayTypes[FieldScoreQuery.Type.INT] = new int[0];
 			expectedArrayTypes[FieldScoreQuery.Type.FLOAT] = new float[0];



Mime
View raw message