lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [2/2] lucenenet git commit: Fixing test by removing bad cast
Date Wed, 31 Dec 2014 19:36:51 GMT
Fixing test by removing bad cast


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

Branch: refs/heads/master
Commit: 48c00dbd41f071326a9663d9f896acae759d095e
Parents: b0e9276
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Wed Dec 31 21:31:08 2014 +0200
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Wed Dec 31 21:31:08 2014 +0200

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/48c00dbd/src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs b/src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs
index 54054e0..2efbafb 100644
--- a/src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestTermRangeQuery.cs
@@ -162,7 +162,7 @@ namespace Lucene.Net.Search
         {
             query.SetRewriteMethod(new MultiTermQuery.TopTermsScoringBooleanQueryRewrite(50));
             BooleanQuery bq = (BooleanQuery)searcher.Rewrite(query);
-            ISet<string> allowedTerms = (ISet<string>)AsSet(terms);
+            var allowedTerms = AsSet(terms);
             Assert.AreEqual(allowedTerms.Count, bq.Clauses.Length);
             foreach (BooleanClause c in bq.Clauses)
             {


Mime
View raw message