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

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


The following commit(s) were added to refs/heads/NLPCRAFT-206 by this push:
     new 27069ca  WIP.
27069ca is described below

commit 27069cac00cb5ba32f65441ba2d0c1f582517f3f
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Tue Mar 2 00:29:57 2021 -0800

    WIP.
---
 .../model/intent/dsl/NCIntentDslCompilerSpec.scala     | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCIntentDslCompilerSpec.scala
 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCIntentDslCompilerSpec.scala
index c5f71af..2f592ee 100644
--- 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCIntentDslCompilerSpec.scala
+++ 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCIntentDslCompilerSpec.scala
@@ -102,14 +102,19 @@ class NCIntentDslCompilerSpec {
         )
         checkCompileOk(
             """
+              |// Some comments.
               |fragment=f1
-              |     term(ft1)={2==2}
+              |     term(ft1)={2==2} /* Term block comment. */
               |     term~/class#method/
-              |
+              |/*
+              | * +=====================+
+              | * | block comments......|
+              | * +=====================+
+              | */
               |intent=i1
-              |     flow="a[^0-9]b"
+              |     flow="a[^0-9]b" // Flow comment.
               |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), map("موسكو\"", 'v1\'v1', "k2", "v2"))}
-              |     fragment(f1, {'a': true, 'b': ["s1", "s2"]})
+              |     fragment(f1, {'a': true, 'b': ["s1", "s2"]}) /* Another 
fragment. */
               |""".stripMargin
         )
         checkCompileOk(
@@ -139,6 +144,11 @@ class NCIntentDslCompilerSpec {
         checkCompileError(
             """
               |intent=i1
+              |/*
+              | * +=====================+
+              | * | block comments......|
+              | * +=====================+
+              | */
               |     flow="a[^0-9]b"
               |     meta={{'a': true, 'b': {'arr': [1, 2, 3]}}
               |     term(t1)={2 == 2 && size(id()) != -25}

Reply via email to