You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2022/10/16 10:29:01 UTC

[lucenenet] branch master updated: Lucene.Net.Tests.Analysis.SmartCn.TestHMMChineseTokenizerFactory: Added LuceneNetSpecificAttribute to TestHHMMSegmenter() and renamed TestHHMMSegmenterInitialization(), since this is a smoke test that was added to test initialization of HHMMSegmenter.

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/master by this push:
     new 4b306ba91 Lucene.Net.Tests.Analysis.SmartCn.TestHMMChineseTokenizerFactory: Added LuceneNetSpecificAttribute to TestHHMMSegmenter() and renamed TestHHMMSegmenterInitialization(), since this is a smoke test that was added to test initialization of HHMMSegmenter.
4b306ba91 is described below

commit 4b306ba917c9c4d94f1a7b85241b7d18e09997a9
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Oct 16 17:17:04 2022 +0700

    Lucene.Net.Tests.Analysis.SmartCn.TestHMMChineseTokenizerFactory: Added LuceneNetSpecificAttribute to TestHHMMSegmenter() and renamed TestHHMMSegmenterInitialization(), since this is a smoke test that was added to test initialization of HHMMSegmenter.
---
 .../TestHMMChineseTokenizerFactory.cs                               | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Lucene.Net.Tests.Analysis.SmartCn/TestHMMChineseTokenizerFactory.cs b/src/Lucene.Net.Tests.Analysis.SmartCn/TestHMMChineseTokenizerFactory.cs
index 901c5a9a8..cdd2eb0ca 100644
--- a/src/Lucene.Net.Tests.Analysis.SmartCn/TestHMMChineseTokenizerFactory.cs
+++ b/src/Lucene.Net.Tests.Analysis.SmartCn/TestHMMChineseTokenizerFactory.cs
@@ -1,4 +1,5 @@
 using Lucene.Net.Analysis.Util;
+using Lucene.Net.Attributes;
 using NUnit.Framework;
 using System;
 using System.Collections.Generic;
@@ -28,9 +29,10 @@ namespace Lucene.Net.Analysis.Cn.Smart
     /// </summary>
     public class TestHMMChineseTokenizerFactory : BaseTokenStreamTestCase
     {
-        [Test]
-        public void TestHHMMSegmenter()
+        [Test, LuceneNetSpecific]
+        public void TestHHMMSegmenterInitialization()
         {
+            // Smoke test to ensure we can parse the resources.
             var x = new Hhmm.HHMMSegmenter();
         }