# HG changeset patch # User Daniel Atallah # Date 1292461004 0 # Node ID e5101d9cbaaa75750f92069fab43d061f960a5b4 # Parent 9f28bc3ed160271065f5193ecfcfbc6bb21b33dd Add two new tests to purple_str_to_time(). The second currently fails, but is the format used for our log files\! diff -r 9f28bc3ed160 -r e5101d9cbaaa libpurple/tests/test_util.c --- 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