# HG changeset patch
# User Steve Losh <steve@stevelosh.com>
# Date 1586620521 14400
# Node ID 89ad444c000bfda09b1a2e2875f2584a2c3c5ca6
# Parent  d34ec597c1f672c67fc24664818a15ad4b30c394
Add newline test

diff -r d34ec597c1f6 -r 89ad444c000b tests/errors.t
--- 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