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 16917cd  WIP.
16917cd is described below

commit 16917cd5468700002447613eb20707a0c496a60f
Author: Aaron Radzinski <[email protected]>
AuthorDate: Tue Mar 16 10:59:05 2021 -0700

    WIP.
---
 .../org/apache/nlpcraft/probe/mgrs/NCProbeVariants.scala     |  2 +-
 .../model/intent/dsl/compiler/NCDslCompilerSpec.scala        | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeVariants.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeVariants.scala
index aa16547..f39d515 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeVariants.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeVariants.scala
@@ -240,7 +240,7 @@ object NCProbeVariants {
                                                     case None ⇒
                                                         throw new NCE(
                                                             s"Part not found 
[" +
-                                                            s"kwy=$key, " +
+                                                            s"key=$key, " +
                                                             s"token=$tok, " +
                                                             
s"lastPhase=$lastPhase" +
                                                         s"]")
diff --git 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/compiler/NCDslCompilerSpec.scala
 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/compiler/NCDslCompilerSpec.scala
index e349d83..4424466 100644
--- 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/compiler/NCDslCompilerSpec.scala
+++ 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/compiler/NCDslCompilerSpec.scala
@@ -80,7 +80,7 @@ class NCDslCompilerSpec {
             """
               |intent=i1
               |     flow="a[^0-9]b"
-              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), map("موسكو\"", 'v1\'v1', "k2", "v2"))}
+              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), list("موسكو\"", 'v1\'v1', "k2", "v2"))}
               |""".stripMargin
         )
         checkCompileOk(
@@ -96,7 +96,7 @@ class NCDslCompilerSpec {
               | */
               |intent=i1
               |     flow="a[^0-9]b" // Flow comment.
-              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), map("موسكو\"", 'v1\'v1', "k2", "v2"))}
+              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), list("موسكو\"", 'v1\'v1', "k2", "v2"))}
               |     fragment(f1, {'a': true, 'b': ["s1", "s2"]}) /* Another 
fragment. */
               |""".stripMargin
         )
@@ -113,7 +113,7 @@ class NCDslCompilerSpec {
               |
               |intent=i1
               |     flow="a[^0-9]b"
-              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), map("موسكو\"", 'v1\'v1', "k2", "v2"))}
+              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), list("موسكو\"", 'v1\'v1', "k2", "v2"))}
               |     fragment(f21, {'a': true, 'b': ["s1", "s2"]})
               |""".stripMargin
         )
@@ -179,7 +179,7 @@ class NCDslCompilerSpec {
             """
               |intent=i1
               |     flow="a[^0-9]b"
-              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), map("k1\"", 'v1\'v1', "k2", "v2"))}[1:2]
+              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), list("k1\"", 'v1\'v1', "k2", "v2"))}[1:2]
               |""".stripMargin
         )
         checkCompileError(
@@ -190,7 +190,7 @@ class NCDslCompilerSpec {
               |
               |intent=i1
               |     flow="a[^0-9]b"
-              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), map("موسكو\"", 'v1\'v1', "k2", "v2"))}
+              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), list("موسكو\"", 'v1\'v1', "k2", "v2"))}
               |     fragment(f1, {'a': true, 'b': ["s1", "s2"]})
               |""".stripMargin
         )
@@ -202,7 +202,7 @@ class NCDslCompilerSpec {
               |
               |intent=i1
               |     flow="a[^0-9]b"
-              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), map("موسكو\"", 'v1\'v1', "k2", "v2"))}
+              |     term(t1)={has(json("{'a': true, 'b\'2': {'arr': [1, 2, 
3]}}"), list("موسكو\"", 'v1\'v1', "k2", "v2"))}
               |     fragment(f1_, {'a': true, 'b': ["s1", "s2"]})
               |""".stripMargin
         )

Reply via email to