lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [2/2] git commit: Adding passing test
Date Mon, 16 Jun 2014 21:53:06 GMT
Adding passing test


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

Branch: refs/heads/master
Commit: c7aa99cd4872c4a9e9be654be5f130dcfa219f30
Parents: 46032f2
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Tue Jun 17 00:53:11 2014 +0300
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Tue Jun 17 00:53:11 2014 +0300

----------------------------------------------------------------------
 .../Snowball/SF/Snowball/Ext/TurkishStemmer.cs       |  3 ---
 test-files/analysis/Turkish3.dat                     |  1 +
 .../Snowball/Analysis/Snowball/TestSnowball.cs       | 15 ++++++++++++++-
 3 files changed, 15 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c7aa99cd/src/contrib/Snowball/SF/Snowball/Ext/TurkishStemmer.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Snowball/SF/Snowball/Ext/TurkishStemmer.cs b/src/contrib/Snowball/SF/Snowball/Ext/TurkishStemmer.cs
index 29a0d26..d737920 100644
--- a/src/contrib/Snowball/SF/Snowball/Ext/TurkishStemmer.cs
+++ b/src/contrib/Snowball/SF/Snowball/Ext/TurkishStemmer.cs
@@ -51,9 +51,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
 
-using System;
-using Among = SF.Snowball.Among;
-using SnowballProgram = SF.Snowball.SnowballProgram;
 namespace SF.Snowball.Ext
 {
         /* Generated class implementing code defined by a snowball script.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c7aa99cd/test-files/analysis/Turkish3.dat
----------------------------------------------------------------------
diff --git a/test-files/analysis/Turkish3.dat b/test-files/analysis/Turkish3.dat
new file mode 100644
index 0000000..3b98ee0
--- /dev/null
+++ b/test-files/analysis/Turkish3.dat
@@ -0,0 +1 @@
+ • AutoCAD

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c7aa99cd/test/contrib/Snowball/Analysis/Snowball/TestSnowball.cs
----------------------------------------------------------------------
diff --git a/test/contrib/Snowball/Analysis/Snowball/TestSnowball.cs b/test/contrib/Snowball/Analysis/Snowball/TestSnowball.cs
index 7478e0b..b374f0e 100644
--- a/test/contrib/Snowball/Analysis/Snowball/TestSnowball.cs
+++ b/test/contrib/Snowball/Analysis/Snowball/TestSnowball.cs
@@ -25,8 +25,8 @@ using Lucene.Net.Analysis.Standard;
 using Lucene.Net.Analysis.Tokenattributes;
 using Lucene.Net.Index;
 using Lucene.Net.Test.Analysis;
+using Lucene.Net.Util;
 using NUnit.Framework;
-using Lucene.Net.Analysis;
 using Version = Lucene.Net.Util.Version;
 
 namespace Lucene.Net.Analysis.Snowball
@@ -43,6 +43,19 @@ namespace Lucene.Net.Analysis.Snowball
         }
 
         [Test]
+        public void TestWithRealWorldData()
+        {
+            foreach (var file in Directory.GetFiles(Path.Combine(Paths.ProjectRootDirectory,
@"test-files\analysis")))
+            {
+                Console.WriteLine(file);
+                using (Analyzer a = new SnowballAnalyzer(Version.LUCENE_CURRENT, "Turkish"))
+                {
+                    a.TokenStream("dummy", new System.IO.StringReader(File.ReadAllText(file)));
+                }
+            }
+        }
+
+        [Test]
         public void TestStopwords()
         {
             Analyzer a = new SnowballAnalyzer(Version.LUCENE_CURRENT, "English",


Mime
View raw message