lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [1/2] lucenenet git commit: Lucene.Net.Tests.Analysis.Common: Changed to only explicitly fail random TestThaiAnalyzer tests (and not conditionally)
Date Tue, 11 Apr 2017 14:03:20 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/api-work b6a7f92b1 -> f88cf9a52


Lucene.Net.Tests.Analysis.Common: Changed to only explicitly fail random TestThaiAnalyzer
tests (and not conditionally)


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

Branch: refs/heads/api-work
Commit: 18baf32dda8ce041e6faa7fb7a825eea614e18d1
Parents: b6a7f92
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Apr 11 20:45:11 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Apr 11 20:45:11 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Th/TestThaiAnalyzer.cs                          | 8 +++-----
 .../Analysis/Th/TestThaiTokenizerFactory.cs                  | 6 ++----
 .../Analysis/Th/TestThaiWordFilterFactory.cs                 | 4 +---
 .../Analysis/Util/TestSegmentingTokenizerBase.cs             | 4 +---
 4 files changed, 7 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/18baf32d/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiAnalyzer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiAnalyzer.cs b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiAnalyzer.cs
index 038d0b4..dec3b84 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiAnalyzer.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiAnalyzer.cs
@@ -32,15 +32,11 @@ namespace Lucene.Net.Analysis.Th
 
     public class TestThaiAnalyzer : BaseTokenStreamTestCase
     {
-
+        [SetUp]
         public override void SetUp()
         {
             base.SetUp();
             AssumeTrue("JRE does not support Thai dictionary-based BreakIterator", ThaiTokenizer.DBBI_AVAILABLE);
-
-#if NETSTANDARD
-            fail("LUCENENET TODO: AccessViolationException being thrown from icu-dotnet");
-#endif
         }
         /*
          * testcase for offsets
@@ -137,6 +133,7 @@ namespace Lucene.Net.Analysis.Th
         [Test]
         public virtual void TestRandomStrings()
         {
+            fail("LUCENENET TODO: AccessViolationException being thrown from icu-dotnet");
             CheckRandomData(Random(), new ThaiAnalyzer(TEST_VERSION_CURRENT), 1000 * RANDOM_MULTIPLIER);
         }
 
@@ -146,6 +143,7 @@ namespace Lucene.Net.Analysis.Th
         [Test]
         public virtual void TestRandomHugeStrings()
         {
+            fail("LUCENENET TODO: AccessViolationException being thrown from icu-dotnet");
             Random random = Random();
             CheckRandomData(random, new ThaiAnalyzer(TEST_VERSION_CURRENT), 100 * RANDOM_MULTIPLIER,
8192);
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/18baf32d/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiTokenizerFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiTokenizerFactory.cs
b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiTokenizerFactory.cs
index 17a592d..8663581 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiTokenizerFactory.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiTokenizerFactory.cs
@@ -24,15 +24,13 @@ namespace Lucene.Net.Analysis.Th
     /// <summary>
     /// Simple tests to ensure the Thai word filter factory is working.
     /// </summary>
+
     public class TestThaiTokenizerFactory : BaseTokenStreamFactoryTestCase
     {
-
+        [SetUp]
         public override void SetUp()
         {
             base.SetUp();
-#if NETSTANDARD
-            fail("LUCENENET TODO: AccessViolationException being thrown from icu-dotnet");
-#endif
         }
 
         /// <summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/18baf32d/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiWordFilterFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiWordFilterFactory.cs
b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiWordFilterFactory.cs
index a3972f2..380dd47 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiWordFilterFactory.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Th/TestThaiWordFilterFactory.cs
@@ -29,12 +29,10 @@ namespace Lucene.Net.Analysis.Th
     [Obsolete]
     public class TestThaiWordFilterFactory : BaseTokenStreamFactoryTestCase
     {
+        [SetUp]
         public override void SetUp()
         {
             base.SetUp();
-#if NETSTANDARD
-            fail("LUCENENET TODO: AccessViolationException being thrown from icu-dotnet");
-#endif
         }
 
         /// <summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/18baf32d/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestSegmentingTokenizerBase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestSegmentingTokenizerBase.cs
b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestSegmentingTokenizerBase.cs
index 34ca075..1addf74 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestSegmentingTokenizerBase.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Util/TestSegmentingTokenizerBase.cs
@@ -31,15 +31,13 @@ namespace Lucene.Net.Analysis.Util
 
     /// <summary>
     /// Basic tests for <seealso cref="SegmentingTokenizerBase"/> </summary>
+
     [TestFixture]
     public class TestSegmentingTokenizerBase : BaseTokenStreamTestCase
     {
         public override void SetUp()
         {
             base.SetUp();
-#if NETSTANDARD
-            fail("LUCENENET TODO: AccessViolationException being thrown from icu-dotnet");
-#endif
         }
 
         private Analyzer sentence = new AnalyzerAnonymousInnerClassHelper();


Mime
View raw message