lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [12/26] lucenenet git commit: Lucene.Net.Tests.Analysis.Common.Analysis.Core.TestRandomChains: Added producers for NorwegianStandard and CJKScript enumerations
Date Wed, 08 Mar 2017 18:23:48 GMT
Lucene.Net.Tests.Analysis.Common.Analysis.Core.TestRandomChains: Added producers for NorwegianStandard
and CJKScript enumerations


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

Branch: refs/heads/api-work
Commit: 819d87d5d24d8f179e5f2caff108c89549d74344
Parents: 79bf063
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Mar 8 16:03:34 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Mar 8 16:56:45 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Core/TestRandomChains.cs                       | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/819d87d5/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestRandomChains.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestRandomChains.cs b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestRandomChains.cs
index 3e6bc48..0394100 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestRandomChains.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestRandomChains.cs
@@ -6,6 +6,7 @@ using Lucene.Net.Analysis.Compound.Hyphenation;
 using Lucene.Net.Analysis.Hunspell;
 using Lucene.Net.Analysis.Miscellaneous;
 using Lucene.Net.Analysis.NGram;
+using Lucene.Net.Analysis.No;
 using Lucene.Net.Analysis.Path;
 using Lucene.Net.Analysis.Payloads;
 using Lucene.Net.Analysis.Snowball;
@@ -310,6 +311,14 @@ namespace Lucene.Net.Analysis.Core
                 int max = Enum.GetValues(typeof(WordDelimiterFlags)).Cast<int>().Sum();
                 return (WordDelimiterFlags)random.Next(0, max + 1);
             }) }, // WordDelimiterFilter
+            { typeof(NorwegianStandard), new AnonymousProducer((random) => {
+                int max = Enum.GetValues(typeof(NorwegianStandard)).Cast<int>().Sum();
+                return (NorwegianStandard)random.Next(0, max + 1);
+            }) },
+            { typeof(CJKScript), new AnonymousProducer((random) => {
+                int max = Enum.GetValues(typeof(CJKScript)).Cast<int>().Sum();
+                return (CJKScript)random.Next(0, max + 1);
+            }) },
         };
 
         private class IntArgProducer : IArgProducer


Mime
View raw message