changeset 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 d18d66f1b1d0
children d4f6507cded3 de29bf952b77 218bf0a34662
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 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;