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 2021/03/23 02:59:26 UTC

[incubator-nlpcraft] branch NLPCRAFT-281 updated: Update test_ok.idl

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

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


The following commit(s) were added to refs/heads/NLPCRAFT-281 by this push:
     new 38732c8  Update test_ok.idl
38732c8 is described below

commit 38732c8ad62cf9b5066530fa9d04739e9620963f
Author: Aaron Radzinski <ar...@apache.org>
AuthorDate: Mon Mar 22 19:59:10 2021 -0700

    Update test_ok.idl
---
 .../org/apache/nlpcraft/model/intent/idl/compiler/test_ok.idl      | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/test_ok.idl b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/test_ok.idl
index 8f06881..9830ca5 100644
--- a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/test_ok.idl
+++ b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/test_ok.idl
@@ -40,17 +40,18 @@ intent=i2
     term(t1)={2 == 2 && !(id()) != -25 && meta_model('a') == 42}
     term(t2)={
         @a = meta_model('a')
+        @list = list(1, 2, 3, 4)
 
-        @a == 42
+        @a == 42 && has_all(@list, list(3, 2))
     }
 
 intent=i3
     flow="a[^0-9]b"
     term(t1)={
         @x = 2
-        @xx = @x * 2
+        @xx = ((@x * @x) / 2) * 3
 
-        @xx == 4 && has(
+        @xx == 6 && has(
             json(meta_req('user_json_payload')),
             list("موسكو\"", 'v1\'v1', "k2", "v2")
         )