lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [1/3] lucenenet git commit: LUCENENET-544: added regression test to show it is no longer broken (closes #158)
Date Fri, 30 Jun 2017 09:03:56 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 3f7e6cfe4 -> 872d6e3e4


LUCENENET-544: added regression test to show it is no longer broken (closes #158)


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

Branch: refs/heads/master
Commit: 94b1a59d2cc9f55285cf8ebf138cd27a4c250cd6
Parents: 3f7e6cf
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Jun 29 04:01:34 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Jun 29 04:55:45 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Snowball/TestSnowball.cs                     | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/94b1a59d/src/Lucene.Net.Tests.Analysis.Common/Analysis/Snowball/TestSnowball.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Snowball/TestSnowball.cs b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Snowball/TestSnowball.cs
index ccbc3d0..e48f489 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Snowball/TestSnowball.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Snowball/TestSnowball.cs
@@ -1,6 +1,8 @@
 using Lucene.Net.Analysis.Core;
 using Lucene.Net.Analysis.Standard;
 using Lucene.Net.Analysis.TokenAttributes;
+using Lucene.Net.Attributes;
+using Lucene.Net.Tartarus.Snowball.Ext;
 using Lucene.Net.Util;
 using NUnit.Framework;
 using System;
@@ -85,6 +87,14 @@ namespace Lucene.Net.Analysis.Snowball
             AssertAnalyzesTo(a, "AĞACI", new string[] { "ağaci" });
         }
 
+        // LUCENENET-544 - This would throw IndexOutOfRangeException in Lucene.Net 3.0.3
+        [Test, LuceneNetSpecific]
+        public virtual void TestLUCENENET_544()
+        {
+            TurkishStemmer ts = new TurkishStemmer();
+            ts.SetCurrent("faydaland");
+            ts.Stem();
+        }
 
         [Test]
         public virtual void TestReusableTokenStream()


Mime
View raw message