Mercurial > audlegacy
diff src/tests/tuple_formatter_functor_test.c @ 3292:a97fb19a0148 trunk
Add support for functions.
| author | William Pitcock <nenolod@atheme-project.org> |
|---|---|
| date | Thu, 09 Aug 2007 10:29:45 -0500 |
| parents | 02335e399a16 |
| children |
line wrap: on
line diff
--- a/src/tests/tuple_formatter_functor_test.c Thu Aug 09 09:38:21 2007 -0500 +++ b/src/tests/tuple_formatter_functor_test.c Thu Aug 09 10:29:45 2007 -0500 @@ -49,6 +49,22 @@ } g_free(tstr); + tstr = tuple_formatter_process_string(tuple, "%{audacious-version}"); + if (g_str_has_prefix(tstr, "audacious") == FALSE) + { + g_print("fail 2: '%s'\n", tstr); + return EXIT_FAILURE; + } + g_free(tstr); + + tstr = tuple_formatter_process_string(tuple, "${(true):%{audacious-version}}"); + if (g_str_has_prefix(tstr, "audacious") == FALSE) + { + g_print("fail 3: '%s'\n", tstr); + return EXIT_FAILURE; + } + g_free(tstr); + mowgli_object_unref(tuple); return EXIT_SUCCESS;
