changeset 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 9f28bc3ed160
children 36855fcbd278
files libpurple/tests/test_util.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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