4 (like (find-cmd '(exec "ls -l")) "-exec ls -l \\\\;"
5 "find escapes wierd chars as it should (exec)")
6 (like (find-cmd '(name "a b ! (")) "a\\\\ b\\\\ \\\\!\\\\ \\\\("
7 "find escapes wierd chars as it should (name)"))
9 (like (let ((default-directory "/etc")) (find-cmd)) "^find /etc $"
10 "find starts with 'find' and default directory")
11 (like (find-cmd) (concat "^find " (regexp-quote default-directory) " ")
12 "find starts with 'find'"))
14 (like (find-to-string '(and (name "*.el") (mtime "+1")))
15 (regexp-quote "\\\( -name \\\*.el -and -mtime \\\+1 \\\) ")
17 (like (find-to-string '(or (name "*.el") (mtime "+1")))
18 (regexp-quote "\\\( -name \\\*.el -or -mtime \\\+1 \\\) ")
20 (like (find-to-string '(or (and (name "a")
23 (regexp-quote "\\\( \\\( -name a -and -mtime \\\+1 \\\) -or -name b")
24 "mixed boolean logic is ok"))))