The following commit has been merged in the master branch:
commit 915fc6138a99276327c14a917c864cdf86ad6fc0
Author: James McCoy <[email protected]>
Date: Sun Feb 17 00:11:46 2013 -0500
Add a test for leading whitespace in annotate-output
Signed-off-by: James McCoy <[email protected]>
diff --git a/test/test_annotate-output b/test/test_annotate-output
index 56f6a3d..d139491 100755
--- a/test/test_annotate-output
+++ b/test/test_annotate-output
@@ -36,4 +36,10 @@ testBackslashes() {
assertEquals 'backslashes echoed' "${expected}" "${actual}"
}
+testLeadingWhitespace() {
+ expected='% O: foo'
+ actual="$($COMMAND +%% printf '%s\n' ' foo' | grep O:)"
+ assertEquals 'leading whitespace preserved' "${expected}" "${actual}"
+}
+
. shunit2
--
Git repository for devscripts
_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel