[svn-commits] tilghman: branch tilghman/issue16461 r272050 - /team/tilghman/issue16461/tests/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 22 17:58:10 CDT 2010


Author: tilghman
Date: Tue Jun 22 17:58:06 2010
New Revision: 272050

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=272050
Log:
Overwrite tests

Modified:
    team/tilghman/issue16461/tests/test_func_file.c

Modified: team/tilghman/issue16461/tests/test_func_file.c
URL: http://svnview.digium.com/svn/asterisk/team/tilghman/issue16461/tests/test_func_file.c?view=diff&rev=272050&r1=272049&r2=272050
==============================================================================
--- team/tilghman/issue16461/tests/test_func_file.c (original)
+++ team/tilghman/issue16461/tests/test_func_file.c Tue Jun 22 17:58:06 2010
@@ -110,6 +110,11 @@
 	{ "123456789", "0,-8", "fg", "fg23456789" },
 	{ "123456789", "-9,1", "fg", "fg23456789" },
 	{ "123456789", "-9,-8", "fg", "fg23456789" },
+	/* Overwrite file */
+	{ "123456789", "", "h", "h" },
+	{ "123456789", ",,,", "h", "h" },
+	{ "123\n456\n789\n", ",,l", "h", "h\n" },
+	{ "123\n456\n789\n", ",,ld", "h", "h" },
 	/* Single line replace, same length */
 	{ "123\n456\n789\n", "0,1,l", "abc", "abc\n456\n789\n" },
 	{ "123\n456\n789\n", "-3,1,l", "abc", "abc\n456\n789\n" },




More information about the svn-commits mailing list