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

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


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

commit b263e9d0a592755de3630554a5d4cc93f403e692
Author: Sergey Kamov <skhdlem...@gmail.com>
AuthorDate: Fri Apr 1 21:38:53 2022 +0300

    WIP.
---
 .../main/java/org/apache/nlpcraft/examples/order/OrderModel.scala   | 2 +-
 .../java/org/apache/nlpcraft/examples/order/OrderModelSpec.scala    | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
 
b/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
index 1d3e257..48253a6 100644
--- 
a/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
+++ 
b/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
@@ -105,7 +105,7 @@ class OrderModel extends NCModelAdapter(
         case class Holder(entity: NCEntity, position: Double)
 
         val ord = getOrder(im)
-        val hsSizes = mutable.ArrayBuffer.empty ++ pizzaSizes.map(p => 
Holder(p ,getAvgPosition(p)))
+        val hsSizes = mutable.ArrayBuffer.empty ++ pizzaSizes.map(p => 
Holder(p, getAvgPosition(p)))
 
         // Pizza. Each pizza can be specified by its size. Or size will be 
asked additionally.
         pizzaKinds.foreach(p => {
diff --git 
a/nlpcraft-examples/order/src/test/java/org/apache/nlpcraft/examples/order/OrderModelSpec.scala
 
b/nlpcraft-examples/order/src/test/java/org/apache/nlpcraft/examples/order/OrderModelSpec.scala
index bb324c7..e8bb51a 100644
--- 
a/nlpcraft-examples/order/src/test/java/org/apache/nlpcraft/examples/order/OrderModelSpec.scala
+++ 
b/nlpcraft-examples/order/src/test/java/org/apache/nlpcraft/examples/order/OrderModelSpec.scala
@@ -34,16 +34,16 @@ class OrderModelSpec:
         def printDialog(): Unit = for (line <- buf) println(line)
 
         Using.resource(new NCModelClient(new OrderModel)) { client =>
-            def ask(txt: String, expType: NCResultType): Unit =
+            def ask(txt: String, expResType: NCResultType): Unit =
                 val resp = client.ask(txt, null, "userId")
 
                 buf += s">> $txt"
                 buf += s">> ${resp.getBody} (${resp.getType})"
                 buf += ""
 
-                if expType != resp.getType then
+                if expResType != resp.getType then
                     printDialog()
-                    require(false, s"Unexpected type: ${resp.getType}, 
expected: ${expType}.")
+                    require(false, s"Unexpected type: ${resp.getType}, 
expected: ${expResType}.")
 
             ask("I want to order margherita medium size, marbonara, marinara 
and tea", ASK_DIALOG)
             ask("large size please", ASK_DIALOG)

Reply via email to