89ad444c000b default tip

Add newline test
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 11 Apr 2020 11:55:21 -0400
parents d34ec597c1f6
children (none)
branches/tags default tip
files tests/errors.t

Changes

--- a/tests/errors.t	Sat Apr 11 11:41:14 2020 -0400
+++ b/tests/errors.t	Sat Apr 11 11:55:21 2020 -0400
@@ -21,6 +21,12 @@
   3 - Sample one.
   7 - Sample two.
 
+Newlines:
+
+  $ xt "$(printf 'foo\nbar')"
+  error: task text cannot contain newlines
+  [1]
+
 Ambiguous identifiers:
 
   $ xt 1