This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-278
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-278 by this push:
new b7ddcfa WIP.
b7ddcfa is described below
commit b7ddcfa07563fc6edcd5b1b51f013c063302ff29
Author: Sergey Kamov <[email protected]>
AuthorDate: Tue Mar 23 16:18:38 2021 +0300
WIP.
---
.../model/intent/idl/compiler/functions/NCIdlFunctions.scala | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctions.scala
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctions.scala
index 0b519ae..46a4290 100644
---
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctions.scala
+++
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctions.scala
@@ -55,8 +55,8 @@ private[functions] trait NCIdlFunctions {
override def toString: String =
token match {
- case Some(t) ⇒ s"Function [definition=$truth, token=${t2s(t)}]"
- case None ⇒ s"Function [definition=$truth]"
+ case Some(t) ⇒ s"Predicate [body='$truth', token=${t2s(t)}]"
+ case None ⇒ s"Predicate '$truth']"
}
}
@@ -143,18 +143,18 @@ private[functions] trait NCIdlFunctions {
try
f.predicate.apply(f.token.getOrElse(tkn()), f.idlCtx).value
catch {
- case e: Exception ⇒ throw new Exception(s"Execution error
[func=$f]", e)
+ case e: Exception ⇒ throw new Exception(s"Execution error
processing: $f", e)
}
res match {
- case b: java.lang.Boolean ⇒ require(b, s"Unexpected FALSE
result [testFunc=$f]")
+ case b: java.lang.Boolean ⇒ require(b, s"Unexpected FALSE
result for: $f]")
case _ ⇒
require(
requirement = false,
s"Unexpected result type [" +
s"resType=${if (res == null) "null" else
res.getClass.getName}, " +
s"resValue=$res, " +
- s"testFunc='$f'" +
+ s"function=$f" +
s"]"
)
}