]> hydra-www.ietfng.org Git - dyna2/commitdiff
added test for dyna boolean operations.
authorTim Vieira <tim.f.vieira@gmail.com>
Thu, 11 Jul 2013 15:44:09 +0000 (11:44 -0400)
committerTim Vieira <tim.f.vieira@gmail.com>
Thu, 11 Jul 2013 15:44:09 +0000 (11:44 -0400)
test/repl/boolean-ops.dynadoc [new file with mode: 0644]

diff --git a/test/repl/boolean-ops.dynadoc b/test/repl/boolean-ops.dynadoc
new file mode 100644 (file)
index 0000000..460307c
--- /dev/null
@@ -0,0 +1,26 @@
+> w := 1, "no".      % right now 1 == true, shouldn't be the case.
+| x := 3, "no".      % shouldn't fire.
+| y := true, "yes".   % already works
+| z := false, "no".  % won't fire.
+
+Changes
+=======
+y = "yes".
+
+
+> f("a")     = 3.0.
+| f("float") = 1.0.
+| f("int")   = 1.
+| f("bool")  = true.
+
+  *ignore*
+
+% integer and float comparsion
+> query 3 is f("a")
+
+3 is f("a") = true.
+
+% integer and bool
+> query f(X) == true
+
+f("bool") == true = true.