This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-278
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-278 by this push:
new 892c47f WIP.
892c47f is described below
commit 892c47fd4d64bd90e5156500251778bdabb640a9
Author: Sergey Kamov <[email protected]>
AuthorDate: Tue Mar 23 17:48:07 2021 +0300
WIP.
---
.../model/intent/idl/compiler/functions/NCIdlFunctionsDate.scala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsDate.scala
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsDate.scala
index 32bd8bf..99df0ff 100644
---
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsDate.scala
+++
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsDate.scala
@@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test
import java.time.temporal.IsoFields
import java.time.{LocalDate, LocalTime}
-import java.util.Calendar
+import java.util.{Calendar ⇒ C}
/**
* Tests for 'dates' functions.
@@ -32,7 +32,7 @@ class NCIdlFunctionsDate extends NCIdlFunctions {
def test0(): Unit = {
val d = LocalDate.now
val t = LocalTime.now
- val c = Calendar.getInstance()
+ val c = C.getInstance()
test(
s"year() - ${d.getYear} == 0",
@@ -43,8 +43,8 @@ class NCIdlFunctionsDate extends NCIdlFunctions {
s"hour() - ${t.getHour} == 0",
s"minute() - ${t.getMinute} == 0",
s"second() - ${t.getSecond} < 5",
- s"week_of_month() - ${c.get(Calendar.WEEK_OF_MONTH)} == 0",
- s"week_of_year() - ${c.get(Calendar.WEEK_OF_YEAR)} == 0",
+ s"week_of_month() - ${c.get(C.WEEK_OF_MONTH)} == 0",
+ s"week_of_year() - ${c.get(C.WEEK_OF_YEAR)} == 0",
s"quarter() - ${d.get(IsoFields.QUARTER_OF_YEAR)} == 0",
s"now() - ${System.currentTimeMillis()} < 5000"
)