This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-283
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-283 by this push:
new 543d0ae WIP.
543d0ae is described below
commit 543d0ae6094e3322c9d59c53de033364626d9567
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Mar 25 13:54:23 2021 +0300
WIP.
---
.../test/scala/org/apache/nlpcraft/model/dialog/NCDialogSpec.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/dialog/NCDialogSpec.scala
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/dialog/NCDialogSpec.scala
index 1c80b8a..1668836 100644
---
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/dialog/NCDialogSpec.scala
+++
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/dialog/NCDialogSpec.scala
@@ -32,7 +32,7 @@ class NCDialogSpecModelFlow {
def trueAlways(flow: java.util.List[NCDialogFlowItem]): Boolean = true
def falseAlways(flow: java.util.List[NCDialogFlowItem]): Boolean = false
def trueAfterOnA7(flow: java.util.List[NCDialogFlowItem]): Boolean =
flow.asScala.exists(_.getIntentId == "onA7")
- def trueAfterOnA7And8(flow: java.util.List[NCDialogFlowItem]): Boolean = {
+ def trueAfterOnA7AndA8(flow: java.util.List[NCDialogFlowItem]): Boolean = {
val seq = flow.asScala
seq.exists(_.getIntentId == "onA7") && seq.exists(_.getIntentId ==
"onA8")
}
@@ -70,7 +70,7 @@ class NCDialogSpecModel extends NCModel {
@NCIntent("intent=onA8
flow=/org.apache.nlpcraft.model.dialog.NCDialogSpecModelFlow#trueAfterOnA7/
term~{tok_id() == 'a8'}")
def onA8(): NCResult = NCResult.text("ok")
- @NCIntent("intent=onA8
flow=/org.apache.nlpcraft.model.dialog.NCDialogSpecModelFlow#trueAfterOnA7And8/
term~{tok_id() == 'a9'}")
+ @NCIntent("intent=onA8
flow=/org.apache.nlpcraft.model.dialog.NCDialogSpecModelFlow#trueAfterOnA7AndA8/
term~{tok_id() == 'a9'}")
def onA9(): NCResult = NCResult.text("ok")
}