Mercurial > audlegacy
diff src/tests/tuple_formatter_test.c @ 3318:6e3ae4fd65f1 trunk
test case for current bug we're facing in the parser.
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Fri, 10 Aug 2007 12:52:15 -0500 |
parents | 6ce62683e8c4 |
children | e5cc5e8b7021 |
line wrap: on
line diff
--- a/src/tests/tuple_formatter_test.c Fri Aug 10 12:29:56 2007 -0500 +++ b/src/tests/tuple_formatter_test.c Fri Aug 10 12:52:15 2007 -0500 @@ -122,6 +122,14 @@ } g_free(tstr); + tstr = tuple_formatter_process_string(tuple, "${?splork:${splork} - }${?splork:${splork} - }${splork}"); + if (g_ascii_strcasecmp(tstr, "moo - moo - moo")) + { + g_print("fail 12: '%s'\n", tstr); + return EXIT_FAILURE; + } + g_free(tstr); + mowgli_object_unref(tuple); return EXIT_SUCCESS;