Update test_ok.idl
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 @@
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