From 916474e003209b04c79342dbb1fa4e5798b9109d Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Fri, 29 Apr 2005 07:32:05 +0000 Subject: - Add add-filename-check.test and trailing-ws.test test cases. --- test/trailing-ws.test | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/trailing-ws.test (limited to 'test/trailing-ws.test') diff --git a/test/trailing-ws.test b/test/trailing-ws.test new file mode 100644 index 0000000..4d63a4b --- /dev/null +++ b/test/trailing-ws.test @@ -0,0 +1,25 @@ + $ mkdir d + $ cd d + + $ echo a > a + $ quilt new test.diff + > Patch patches/test.diff is now on top + + $ quilt add a + > File a added to patch patches/test.diff + + $ echo "a " > a + $ quilt refresh + > Warning: patches/test.diff adds trailing whitespace + > Refreshed patch patches/test.diff + + $ grep '[ \t]$' patches/test.diff + > +a + + $ quilt refresh --strip-trailing-whitespace + > Refreshed patch patches/test.diff + + $ grep '[ \t]$' patches/test.diff + + $ cd .. + $ rm -rf d -- cgit