diff tests/test-import-eol @ 8817:6c9dce20ed70

Fixed patch.eol bug that truncated all patched lines to one character Also updated the import-eol test to test with lines longer than one character, and also empty lines.
author Colin Caughie <c.caughie@indigovision.com>
date Tue, 16 Jun 2009 16:22:42 +0100
parents ac92775b3b80
children 1720d70cd6d4
line wrap: on
line diff
--- a/tests/test-import-eol	Mon Jun 15 02:51:10 2009 -0500
+++ b/tests/test-import-eol	Tue Jun 16 16:22:42 2009 +0100
@@ -9,9 +9,10 @@
 w('+++ b/a\n')
 w('@@ -1,5 +1,5 @@\n')
 w(' a\n')
-w('-b\r\n')
-w('+y\r\n')
-w(' c\r\n')
+w('-bbb\r\n')
+w('+yyyy\r\n')
+w(' cc\r\n')
+w(' \n')
 w(' d\n')
 w('-e\n')
 w('\ No newline at end of file\n')
@@ -24,7 +25,7 @@
 echo '\.diff' > .hgignore
 
 # Test different --eol values
-python -c 'file("a", "wb").write("a\nb\nc\nd\ne")'
+python -c 'file("a", "wb").write("a\nbbb\ncc\n\nd\ne")'
 hg ci -Am adda
 python ../makepatch.py
 echo % invalid eol