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 2020/09/21 10:21:21 UTC
[incubator-nlpcraft] branch master updated: NCRestModelSpec test
minor fix.
This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new 822ab6d NCRestModelSpec test minor fix.
822ab6d is described below
commit 822ab6d95faf262e9eb22d1604a5a1954610fb2c
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Mon Sep 21 13:21:14 2020 +0300
NCRestModelSpec test minor fix.
---
.../test/scala/org/apache/nlpcraft/server/rest/NCRestModelSpec.scala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nlpcraft/src/test/scala/org/apache/nlpcraft/server/rest/NCRestModelSpec.scala b/nlpcraft/src/test/scala/org/apache/nlpcraft/server/rest/NCRestModelSpec.scala
index ce07183..e34eb84 100644
--- a/nlpcraft/src/test/scala/org/apache/nlpcraft/server/rest/NCRestModelSpec.scala
+++ b/nlpcraft/src/test/scala/org/apache/nlpcraft/server/rest/NCRestModelSpec.scala
@@ -41,7 +41,8 @@ class NCRestModelSpec extends NCRestSpec {
assertTrue(scores.nonEmpty)
assertTrue(scores.forall(s ⇒ s >= 0 && s <= 1))
- assertTrue(scores.exists(_ > 0.5))
+ assertTrue(scores.exists(_ >= 0.5))
+ assertTrue(scores.exists(_ <= 0.5))
})
)
post("model/sugsyn", "mdlId" → "nlpcraft.alarm.ex", "minScore" → 0.5)(