You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by se...@apache.org on 2022/02/25 20:52:42 UTC

[incubator-nlpcraft] branch NLPCRAFT-483 updated: Minor fixes.

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

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


The following commit(s) were added to refs/heads/NLPCRAFT-483 by this push:
     new 6d44e25  Minor fixes.
6d44e25 is described below

commit 6d44e25143107a4eb4eb80f1f5cdfcfc5a3f60f4
Author: Sergey Kamov <sk...@gmail.com>
AuthorDate: Fri Feb 25 23:52:36 2022 +0300

    Minor fixes.
---
 .../apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala    | 2 +-
 .../apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala    | 2 +-
 .../java/org/apache/nlpcraft/examples/time/NCModelValidationSpec.scala  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/nlpcraft-examples/lightswitch-ru/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala b/nlpcraft-examples/lightswitch-ru/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala
index 69b5793..6b031eb 100644
--- a/nlpcraft-examples/lightswitch-ru/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala
+++ b/nlpcraft-examples/lightswitch-ru/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala
@@ -27,4 +27,4 @@ import scala.util.Using
   */
 class NCModelValidationSpec:
     @Test
-    def test(): Unit = Using.resource(new NCModelClient(new LightSwitchRuModel)) { client => client.validateSamples() }
+    def test(): Unit = Using.resource(new NCModelClient(new LightSwitchRuModel)) { _.validateSamples() }
diff --git a/nlpcraft-examples/lightswitch/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala b/nlpcraft-examples/lightswitch/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala
index 6520aab..689f2f9 100644
--- a/nlpcraft-examples/lightswitch/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala
+++ b/nlpcraft-examples/lightswitch/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala
@@ -26,7 +26,7 @@ import scala.util.Using
   * JUnit models validation.
   */
 class NCModelValidationSpec:
-    private def test(mdl: NCModel): Unit = Using.resource(new NCModelClient(mdl)) { client => client.validateSamples() }
+    private def test(mdl: NCModel): Unit = Using.resource(new NCModelClient(mdl)) { _.validateSamples() }
 
     @Test
     def testJava(): Unit = test(new LightSwitchJavaModel())
diff --git a/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCModelValidationSpec.scala b/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCModelValidationSpec.scala
index ff9d610..a79a81c 100644
--- a/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCModelValidationSpec.scala
+++ b/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCModelValidationSpec.scala
@@ -27,4 +27,4 @@ import scala.util.Using
   */
 class NCModelValidationSpec:
     @Test
-    def test(): Unit = Using.resource(new NCModelClient(new TimeModel())) { client => client.validateSamples() }
+    def test(): Unit = Using.resource(new NCModelClient(new TimeModel())) { _.validateSamples() }