From: Tim Vieira Date: Thu, 11 Jul 2013 15:44:09 +0000 (-0400) Subject: added test for dyna boolean operations. X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=45397aa72c94aa97ec0c037d8a94b78f7b259eee;p=dyna2 added test for dyna boolean operations. --- diff --git a/test/repl/boolean-ops.dynadoc b/test/repl/boolean-ops.dynadoc new file mode 100644 index 0000000..460307c --- /dev/null +++ b/test/repl/boolean-ops.dynadoc @@ -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.