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

aradzinski 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 bcb42c1  Update NCIdlFunctionsOther.scala
bcb42c1 is described below

commit bcb42c1e39cc9703c8167960875a036ccc3cb1c8
Author: Aaron Radzinski <[email protected]>
AuthorDate: Tue Mar 23 14:55:10 2021 -0700

    Update NCIdlFunctionsOther.scala
---
 .../intent/idl/compiler/functions/NCIdlFunctionsOther.scala      | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsOther.scala
 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsOther.scala
index a47e46e..284144e 100644
--- 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsOther.scala
+++ 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/idl/compiler/functions/NCIdlFunctionsOther.scala
@@ -55,4 +55,13 @@ class NCIdlFunctionsOther extends NCIdlFunctions {
             "to_string(3.123) == '3.123'"
         )
     }
+
+    @Test
+    def test4(): Unit = {
+        test(
+            s"to_double(25) == 25.0",
+            s"to_double(25) != 25", // double != int without rounding.
+            s"round(to_double(25)) == 25"
+        )
+    }
 }

Reply via email to