You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ar...@apache.org on 2009/11/14 00:16:50 UTC
svn commit: r836056 -
/incubator/lucene.net/trunk/C#/src/Test/Util/TestSortedVIntList.cs
Author: aroush
Date: Fri Nov 13 23:16:50 2009
New Revision: 836056
URL: http://svn.apache.org/viewvc?rev=836056&view=rev
Log:
Fixed NUnit test-cases for: TestSortedVIntList
Modified:
incubator/lucene.net/trunk/C#/src/Test/Util/TestSortedVIntList.cs
Modified: incubator/lucene.net/trunk/C#/src/Test/Util/TestSortedVIntList.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Util/TestSortedVIntList.cs?rev=836056&r1=836055&r2=836056&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Util/TestSortedVIntList.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Util/TestSortedVIntList.cs Fri Nov 13 23:16:50 2009
@@ -27,12 +27,6 @@
[TestFixture]
public class TestSortedVIntList:LuceneTestCase
{
- /// <summary>Main for running test case by itself. </summary>
- [STAThread]
- public static void Main(System.String[] args)
- {
- // TestRunner.run(new TestSuite(typeof(TestSortedVIntList))); // {{Aroush-2.9}} how is this done in NUnit?
- }
internal virtual void TstIterator(SortedVIntList vintList, int[] ints)
{
@@ -62,7 +56,8 @@
public virtual void TstViaBitSet(int[] ints, int expectedByteSize)
{
int MAX_INT_FOR_BITSET = 1024 * 1024;
- System.Collections.BitArray bs = new System.Collections.BitArray(64);
+ //mgarski - BitArray cannot grow, so make as large as we would need it to be
+ System.Collections.BitArray bs = new System.Collections.BitArray(MAX_INT_FOR_BITSET);
for (int i = 0; i < ints.Length; i++)
{
if (ints[i] > MAX_INT_FOR_BITSET)