lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [30/34] lucenenet git commit: Fixing bug where class rather than local variable was used
Date Fri, 12 Aug 2016 13:20:44 GMT
Fixing bug where class rather than local variable was used


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

Branch: refs/heads/lucenenet-indexablefield-api
Commit: 1863bb825d83bca3cfa9e260a571c9681aee594b
Parents: c8e1eae
Author: Connie Yau <conniey@microsoft.com>
Authored: Mon Aug 8 11:40:10 2016 -0700
Committer: Connie Yau <conniey@microsoft.com>
Committed: Mon Aug 8 11:40:10 2016 -0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Search/TestFilteredQuery.cs | 10 +++++-----
 src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs   |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1863bb82/src/Lucene.Net.Tests/core/Search/TestFilteredQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestFilteredQuery.cs b/src/Lucene.Net.Tests/core/Search/TestFilteredQuery.cs
index 1b2ee3a..29eeac3 100644
--- a/src/Lucene.Net.Tests/core/Search/TestFilteredQuery.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestFilteredQuery.cs
@@ -280,7 +280,7 @@ namespace Lucene.Net.Search
             bq.Add(query, BooleanClause.Occur.MUST);
             ScoreDoc[] hits = Searcher.Search(bq, null, 1000).ScoreDocs;
             Assert.AreEqual(0, hits.Length);
-            QueryUtils.Check(Random(), Query, Searcher, Similarity);
+            QueryUtils.Check(Random(), query, Searcher, Similarity);
         }
 
         [Test]
@@ -301,7 +301,7 @@ namespace Lucene.Net.Search
             bq.Add(query, BooleanClause.Occur.SHOULD);
             ScoreDoc[] hits = Searcher.Search(bq, null, 1000).ScoreDocs;
             Assert.AreEqual(2, hits.Length);
-            QueryUtils.Check(Random(), Query, Searcher, Similarity);
+            QueryUtils.Check(Random(), query, Searcher, Similarity);
         }
 
         // Make sure BooleanQuery, which does out-of-order
@@ -323,7 +323,7 @@ namespace Lucene.Net.Search
             bq.Add(new TermQuery(new Term("field", "two")), BooleanClause.Occur.SHOULD);
             ScoreDoc[] hits = Searcher.Search(query, 1000).ScoreDocs;
             Assert.AreEqual(1, hits.Length);
-            QueryUtils.Check(Random(), Query, Searcher, Similarity);
+            QueryUtils.Check(Random(), query, Searcher, Similarity);
         }
 
         [Test]
@@ -340,13 +340,13 @@ namespace Lucene.Net.Search
             Query query = new FilteredQuery(new FilteredQuery(new MatchAllDocsQuery(), new
CachingWrapperFilter(new QueryWrapperFilter(new TermQuery(new Term("field", "three")))), RandomFilterStrategy(Random(),
useRandomAccess)), new CachingWrapperFilter(new QueryWrapperFilter(new TermQuery(new Term("field",
"four")))), RandomFilterStrategy(Random(), useRandomAccess));
             ScoreDoc[] hits = Searcher.Search(query, 10).ScoreDocs;
             Assert.AreEqual(2, hits.Length);
-            QueryUtils.Check(Random(), Query, Searcher, Similarity);
+            QueryUtils.Check(Random(), query, Searcher, Similarity);
 
             // one more:
             query = new FilteredQuery(query, new CachingWrapperFilter(new QueryWrapperFilter(new
TermQuery(new Term("field", "five")))), RandomFilterStrategy(Random(), useRandomAccess));
             hits = Searcher.Search(query, 10).ScoreDocs;
             Assert.AreEqual(1, hits.Length);
-            QueryUtils.Check(Random(), Query, Searcher, Similarity);
+            QueryUtils.Check(Random(), query, Searcher, Similarity);
         }
 
         [Test]

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1863bb82/src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs b/src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs
index 812d0ed..972e713 100644
--- a/src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestPhraseQuery.cs
@@ -255,7 +255,7 @@ namespace Lucene.Net.Search
             query.Add(new Term("field", "words"));
             ScoreDoc[] hits = searcher.Search(query, null, 1000).ScoreDocs;
             Assert.AreEqual(1, hits.Length);
-            QueryUtils.Check(Random(), Query, Searcher, Similarity);
+            QueryUtils.Check(Random(), query, Searcher, Similarity);
 
             reader.Dispose();
             directory.Dispose();
@@ -380,7 +380,7 @@ namespace Lucene.Net.Search
             Assert.AreEqual(1, hits[1].Doc);
             Assert.AreEqual(0.31, hits[2].Score, 0.01);
             Assert.AreEqual(2, hits[2].Doc);
-            QueryUtils.Check(Random(), Query, Searcher, Similarity);
+            QueryUtils.Check(Random(), query, Searcher, Similarity);
             reader.Dispose();
             directory.Dispose();
         }


Mime
View raw message