[template-glib] tests: add division test



commit 379174c6faee347eb25157397290886f2943667b
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 4 14:53:42 2022 -0700

    tests: add division test

 tests/test1.script | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/tests/test1.script b/tests/test1.script
index 46e90da..737f45c 100644
--- a/tests/test1.script
+++ b/tests/test1.script
@@ -10,6 +10,9 @@ assert(123 != 124)
 assert(123 != -123)
 assert(123 == abs(-123))
 
+assert(1 - 10 == -9)
+assert(1 / 10 == .1)
+
 abc = "abc"
 assert(abc == "abc")
 assert(abc != "abc\n")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]