You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by if...@apache.org on 2020/05/27 04:52:29 UTC
[incubator-nlpcraft] 01/01: Refactor sort test
This is an automated email from the ASF dual-hosted git repository.
ifropc pushed a commit to branch sort-tests-scenarios
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit 47faa85a9f018068da2c211a92e88fbd91eaeacd
Author: Ifropc <if...@apache.org>
AuthorDate: Tue May 26 21:51:26 2020 -0700
Refactor sort test
---
.../nlp/enrichers/sort/NCEnricherSortSpec.scala | 30 +++++++++++-----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/sort/NCEnricherSortSpec.scala b/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/sort/NCEnricherSortSpec.scala
index 815f7fa..83ec5e1 100644
--- a/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/sort/NCEnricherSortSpec.scala
+++ b/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/sort/NCEnricherSortSpec.scala
@@ -50,40 +50,40 @@ class NCEnricherSortSpec extends NCEnricherBaseSpec {
usr(text = "A", id = "A")
),
_ ⇒ checkExists(
- "sort A, C by A, C",
- srt(text = "sort", subjNotes = Seq("A", "C"), subjIndexes = Seq(1, 3), byNotes = Seq("A", "C"), byIndexes = Seq(5, 7)),
+ "sort A, C by X, Y",
+ srt(text = "sort", subjNotes = Seq("A", "C"), subjIndexes = Seq(1, 3), byNotes = Seq("X", "Y"), byIndexes = Seq(5, 7)),
usr(text = "A", id = "A"),
nlp(text = ",", isStop = true),
usr(text = "C", id = "C"),
nlp(text = "by", isStop = true),
- usr(text = "A", id = "A"),
+ usr(text = "X", id = "X"),
nlp(text = ",", isStop = true),
- usr(text = "C", id = "C")
+ usr(text = "Y", id = "Y")
),
_ ⇒ checkExists(
- "sort A C by A C",
- srt(text = "sort", subjNotes = Seq("A", "C"), subjIndexes = Seq(1, 2), byNotes = Seq("A", "C"), byIndexes = Seq(4, 5)),
+ "sort A C by X Y",
+ srt(text = "sort", subjNotes = Seq("A", "C"), subjIndexes = Seq(1, 2), byNotes = Seq("X", "Y"), byIndexes = Seq(4, 5)),
usr(text = "A", id = "A"),
usr(text = "C", id = "C"),
nlp(text = "by", isStop = true),
- usr(text = "A", id = "A"),
- usr(text = "C", id = "C")
+ usr(text = "X", id = "Y"),
+ usr(text = "Y", id = "Y")
),
_ ⇒ checkExists(
- "sort A B by A B",
- srt(text = "sort", subjNotes = Seq("A", "B"), subjIndexes = Seq(1, 2), byNotes = Seq("A", "B"), byIndexes = Seq(4, 5)),
+ "sort A B by X Y",
+ srt(text = "sort", subjNotes = Seq("A", "B"), subjIndexes = Seq(1, 2), byNotes = Seq("X", "Y"), byIndexes = Seq(4, 5)),
usr(text = "A", id = "A"),
usr(text = "B", id = "B"),
nlp(text = "by", isStop = true),
- usr(text = "A", id = "A"),
- usr(text = "B", id = "B")
+ usr(text = "X", id = "X"),
+ usr(text = "Y", id = "Y")
),
_ ⇒ checkExists(
- "sort A B by A B",
- srt(text = "sort", subjNote = "AB", subjIndex = 1, byNote = "AB", byIndex = 3),
+ "sort A B by X Y",
+ srt(text = "sort", subjNote = "AB", subjIndex = 1, byNote = "XY", byIndex = 3),
usr(text = "A B", id = "AB"),
nlp(text = "by", isStop = true),
- usr(text = "A B", id = "AB")
+ usr(text = "X Y", id = "XY")
),
_ ⇒ checkExists(
"A classify",