changeset 3308:2aed30eaca87 trunk

Add a test which displays the backtracking bug.
author William Pitcock <nenolod@atheme-project.org>
date Fri, 10 Aug 2007 10:46:22 -0500
parents 00286cde2485
children 4400659c1ea6
files src/tests/tuple_formatter_test.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/tests/tuple_formatter_test.c	Fri Aug 10 15:14:20 2007 +0200
+++ b/src/tests/tuple_formatter_test.c	Fri Aug 10 10:46:22 2007 -0500
@@ -106,6 +106,14 @@
     }
     g_free(tstr);
 
+    tstr = tuple_formatter_process_string(tuple, "${splork:${splork} - }${splork}");
+    if (g_ascii_strcasecmp(tstr, "moo - moo"))
+    {
+        g_print("fail 10: '%s'\n", tstr);
+        return EXIT_FAILURE;
+    }
+    g_free(tstr);
+
     mowgli_object_unref(tuple);
 
     return EXIT_SUCCESS;