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

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


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

commit 6240d3f446e0ea7758fda1480431a10b7886ac2c
Author: Sergey Kamov <skhdlem...@gmail.com>
AuthorDate: Fri Jan 28 21:06:56 2022 +0300

    WIP.
---
 .../internal/impl/scan/NCIntentImportSpec.scala    | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/internal/impl/scan/NCIntentImportSpec.scala
 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/internal/impl/scan/NCIntentImportSpec.scala
new file mode 100644
index 0000000..5d176da
--- /dev/null
+++ 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/internal/impl/scan/NCIntentImportSpec.scala
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nlpcraft.internal.impl.scan
+
+import org.apache.nlpcraft.internal.intent.compiler.NCIDLCompiler
+import org.junit.jupiter.api.Test
+import org.apache.nlpcraft.nlp.util.opennlp.*
+
+/**
+  *
+  */
+class NCIntentImportSpec:
+    @Test
+    def test(): Unit = require(NCIDLCompiler.compile("import('scan/idl.idl')", 
CFG, "-").size == 1)
+

Reply via email to