# HG changeset patch # User William Pitcock # Date 1186768335 18000 # Node ID 6e3ae4fd65f1604c0a4a929495a4bb2fbae04e29 # Parent d18d66f1b1d0743379ec975dc5d2c71db0df360d test case for current bug we're facing in the parser. diff -r d18d66f1b1d0 -r 6e3ae4fd65f1 src/tests/tuple_formatter_test.c --- 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;