about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2021-04-21 21:59:45 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2021-04-21 22:05:00 +0000
commitb0bd14035d1e2747ff98c46ca8715aab4f9533ea (patch)
treeb11c520c1cbbd2693a3a3838b39e8ccd3ba38e51 /Test
parente7711e37e4a85338a4717ca5791940bc64878afb (diff)
downloadzsh-b0bd14035d1e2747ff98c46ca8715aab4f9533ea.tar.gz
zsh-b0bd14035d1e2747ff98c46ca8715aab4f9533ea.tar.xz
zsh-b0bd14035d1e2747ff98c46ca8715aab4f9533ea.zip
48606 + 48607 + unposted test: zmathfunc: Force arguments to be numbers and catch errors.
Diffstat (limited to 'Test')
-rw-r--r--Test/Z02zmathfunc.ztst8
1 files changed, 7 insertions, 1 deletions
diff --git a/Test/Z02zmathfunc.ztst b/Test/Z02zmathfunc.ztst
index 05e28c07a..2be770a13 100644
--- a/Test/Z02zmathfunc.ztst
+++ b/Test/Z02zmathfunc.ztst
@@ -44,7 +44,13 @@
 ?(eval):1: wrong number of arguments: max()
 
  zsh_math_func_min "foo bar" x y z
-2dDf:check errors from an unsupported use-case (workers/48156)
+2d:check errors from an unsupported use-case (workers/48156)
+# We expect one non-empty line of stderr, but don't care about the specific
+# error message; thus, the expectation is a pattern (*), for stderr (?), which
+# matches any non-empty string (?*).
+#
+# Sorry, Perl, but I had to give you a run for your money.
+*??*
 F:Calling zsh_math_func_min directly isn't a supported use-case, but if it
 F:returns zero, something's probably wrong.