This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new 53fcd49 Update NCIdlFunctionsToken.scala
53fcd49 is described below
commit 53fcd49066d5562e6345cef6abe6d1d6e95d92eb
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Mon Aug 2 20:01:03 2021 -0700
Update NCIdlFunctionsToken.scala
---
.../intent/idl/compiler/functions/NCIdlFunctionsToken.scala | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsToken.scala
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsToken.scala
index 58363a4..7ddaa74 100644
---
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsToken.scala
+++
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsToken.scala
@@ -195,6 +195,16 @@ class NCIdlFunctionsToken extends NCIdlFunctions {
idlCtx = mkIdlContext(Seq(tok1, tok2, tok3))
),
TestDesc(
+ truth = "size(tok_all()) == 3",
+ token = tok2,
+ idlCtx = mkIdlContext(Seq(tok1, tok2, tok3))
+ ),
+ TestDesc(
+ truth = "tok_count() == size(tok_all())",
+ token = tok2,
+ idlCtx = mkIdlContext(Seq(tok1, tok2, tok3))
+ ),
+ TestDesc(
truth =
"size(tok_all_for_group('g')) == 1 && " +
"tok_id(first(tok_all_for_group('w'))) == '2' && " +