tests/test-diff-ignore-whitespace.t
changeset 34013 da07367d683b
parent 17742 405b6bd015df
child 49621 55c6ebd11cb9
--- a/tests/test-diff-ignore-whitespace.t	Fri Aug 25 11:20:34 2017 -0700
+++ b/tests/test-diff-ignore-whitespace.t	Tue Aug 29 18:20:50 2017 -0700
@@ -407,8 +407,23 @@
   +goodbye\r (no-eol) (esc)
   world
 
+Test \r (carriage return) as used in "DOS" line endings:
+
+  $ printf 'hello world    \r\n\t\ngoodbye world\n' >foo
+
+  $ hg ndiff --ignore-space-at-eol
+  diff -r 540c40a65b78 foo
+  --- a/foo
+  +++ b/foo
+  @@ -1,2 +1,3 @@
+   hello world
+  +\t (esc)
+   goodbye world
+
 No completely blank lines to ignore:
 
+  $ printf 'hello world\r\n\r\ngoodbye\rworld\n' >foo
+
   $ hg ndiff --ignore-blank-lines
   diff -r 540c40a65b78 foo
   --- a/foo