commit 3343173a9156547a3043b93388798a8a81bf086d
parent fe622570260eed9c19c08e02b432a19b63c0fafc
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Fri, 11 Dec 2015 18:05:12 +0100
tests
Diffstat:
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/query.test b/query.test
@@ -497,3 +497,19 @@ printf "%s", "hostname=" ((find("hostname")?found:"localhost")) "\n"
if(DEBUG) printf "got scalar: %s ⇒ %s (%d)\n", varname, V[varname], m >"/dev/stderr"
>>>2
>>>= 0
+
+./querytest tests/query22
+<<<
+printf "%s", (ifdir) "/" (int_args[n]) " " (<int.'int_args[n]'|C:"r">) "\n"
+>>>
+printf "%s", (ifdir) "/" (int_args[n]) " " ((find("int."(int_args[n]))?C(found):"r")) "\n"
+>>>2
+>>>= 0
+
+./querytest tests/query23
+<<<
+printf "%s", (vsdir) "/shellͺ " (<vs.shell|C:"r">) "\n"
+>>>
+printf "%s", (vsdir) "/shellͺ " ((find("vs.shell")?C(found):"r")) "\n"
+>>>2
+>>>= 0