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 818a309 Update test_ok.idl
818a309 is described below
commit 818a3097720acd56a9692f0a546c4a2d3f9c69f7
Author: Aaron Radzinski <[email protected]>
AuthorDate: Mon Mar 22 00:24:00 2021 -0700
Update test_ok.idl
---
.../org/apache/nlpcraft/model/intent/idl/compiler/test_ok.idl | 8 +++++---
1 file changed, 5 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 aa2fca6..890cf8c 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
@@ -31,18 +31,20 @@ intent=i1
fragment(p1, {'a': true, 'b': {'Москва': [1, 2, 3]}}) /* Macro-expansion.
*/
term~{length("some text") > 0} // Normal term.
term={has_all(list(1, 2, 3, 4, 5), list(3, 5))}
+ term={if(2==2, "string", list(1, 2, 3))}
// Intent #2.
intent=i2
flow="a[^0-9]b"
- meta={'a': true, 'b': {'Москва': [1, 2, 3]}}
- term(t1)={2 == 2 && !(id()) != -25}
+ meta={'a': 42, 'b': {'Москва': [1, 2, 3]}}
+ term(t1)={2 == 2 && !(id()) != -25 && meta_model('a') == 42}
+ term(t2)={meta_model('a') == 42}
intent=i3
flow="a[^0-9]b"
term(t1)={
has(
- json("{'a': true, 'b\'2': {'arr': [1, 2, 3]}}"),
+ json(meta_req('user_json_payload')),
list("موسكو\"", 'v1\'v1', "k2", "v2")
)
}
\ No newline at end of file