Mercurial > pidgin
diff libpurple/tests/test_util.c @ 31029:e5101d9cbaaa
Add two new tests to purple_str_to_time(). The second currently fails, but is the format used for our log files\!
| author | Daniel Atallah <daniel.atallah@gmail.com> |
|---|---|
| date | Thu, 16 Dec 2010 00:56:44 +0000 |
| parents | b8782b02330d |
| children | 169ebed69ef0 |
line wrap: on
line diff
--- a/libpurple/tests/test_util.c Wed Dec 15 09:38:34 2010 +0000 +++ b/libpurple/tests/test_util.c Thu Dec 16 00:56:44 2010 +0000 @@ -156,6 +156,8 @@ { fail_unless(377182200 == purple_str_to_time("19811214T12:50:00", TRUE, NULL, NULL, NULL)); fail_unless(1175919261 == purple_str_to_time("20070407T04:14:21", TRUE, NULL, NULL, NULL)); + fail_unless(1282941722 == purple_str_to_time("2010-08-27.204202", TRUE, NULL, NULL, NULL)); + fail_unless(1282941722 == purple_str_to_time("2010-08-27.134202-0700PDT", FALSE, NULL, NULL, NULL)); } END_TEST
