You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2020/12/24 03:18:32 UTC

[incubator-nlpcraft] branch NLPCRAFT-178 updated: WIP.

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

aradzinski pushed a commit to branch NLPCRAFT-178
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-178 by this push:
     new 057a27b  WIP.
057a27b is described below

commit 057a27b4405c142f9d873f46c1a1f7ad57bbdd9b
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Wed Dec 23 19:18:19 2020 -0800

    WIP.
---
 .../nlpcraft/model/intent/impl/NCIntentSolverEngineSpec.scala      | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/impl/NCIntentSolverEngineSpec.scala b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/impl/NCIntentSolverEngineSpec.scala
index 9784972..6f0ca0f 100644
--- a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/impl/NCIntentSolverEngineSpec.scala
+++ b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/impl/NCIntentSolverEngineSpec.scala
@@ -19,7 +19,7 @@ package org.apache.nlpcraft.model.intent.impl
 
 import org.apache.nlpcraft.common._
 import org.apache.nlpcraft.model.intent.utils.NCDslFlowItem
-import org.junit.jupiter.api.Assertions.assertTrue
+import org.junit.jupiter.api.Assertions.{assertFalse, assertTrue}
 import org.junit.jupiter.api.Test
 
 /**
@@ -49,6 +49,9 @@ class NCIntentSolverEngineSpec  {
         assertTrue(matchFlow("a a c c", ("a", 2, 2), ("b|c", 1, 2), ("d", 0, 1)))
         assertTrue(matchFlow("a a c c d", ("a", 2, 2), ("b|c", 1, 2), ("d", 0, 1)))
         assertTrue(matchFlow("a a c c e f g h", ("a", 2, 2), ("b|c", 1, 2), ("d", 0, 1)))
-        assertTrue(!matchFlow("a a c c x", ("a", 2, 2), ("b|c", 1, 2), ("d", 1, 1)))
+        assertFalse(matchFlow("a a c c x", ("a", 2, 2), ("b|c", 1, 2), ("d", 1, 1)))
+
+        assertTrue(matchFlow(hist = "a", flow = ("a", 1, 1)))
+        assertFalse(matchFlow(hist = "a a", flow = ("a", 1, 1)))
     }
 }