This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-415
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-415 by this push:
new 26a70ac WIP.
26a70ac is described below
commit 26a70ac39546a7be3a3111c5beaeb838c734a8e1
Author: Sergey Kamov <[email protected]>
AuthorDate: Sun Aug 22 23:04:50 2021 +0300
WIP.
---
.../test/scala/org/apache/nlpcraft/server/rest/NCRestModelSpec.scala | 2 --
1 file changed, 2 deletions(-)
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 9cc5edc..2bbc9cb 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
@@ -111,14 +111,12 @@ class NCRestModelSpec2 extends NCRestSpec {
("$.valuesExp", (data: java.util.Map[Object, Object]) =>
assertTrue(checkValsExp(data.size())))
)
-
post0("eExt1", checkVals = _ == 0, checkValsExp = _ == 0)
post0("eExt2", checkSyns = _ == 3, checkSynsExp = _ == 11, checkVals =
_ == 3, checkValsExp = _ == 3)
post0("eExt2", pattern = Some("mtest2"), checkSyns = _ == 1,
checkSynsExp = _ == 8, checkVals = _ == 2, checkValsExp = _ == 2)
post0("eExt2", pattern = Some("UNKNOWN"), checkSyns = _ == 0,
checkSynsExp = _ == 0, checkVals = _ == 0, checkValsExp = _ == 0)
-
postError("model/syns", 400, "NC_INVALID_FIELD", "mdlId" -> "UNKNOWN",
"elmId" -> "UNKNOWN")
postError("model/syns", 400, "NC_INVALID_FIELD", "mdlId" ->
"rest.test.model", "elmId" -> "UNKNOWN")
postError("model/syns", 400, "NC_INVALID_FIELD", "mdlId" -> ("A" *
33), "elmId" -> "UNKNOWN")