pidgin: b9d0f16f: Add two new tests to purple_str_to_time(...

datallah at pidgin.im datallah at pidgin.im
Wed Dec 15 20:01:49 EST 2010


----------------------------------------------------------------------
Revision: b9d0f16f3db2b0dad7e39c47fb5797d511f121ff
Parent:   e88e1decd486a2f424cf6aaa81a2fc4860fff55a
Author:   datallah at pidgin.im
Date:     12/15/10 19:56:44
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b9d0f16f3db2b0dad7e39c47fb5797d511f121ff

Changelog: 

Add two new tests to purple_str_to_time().  The second currently fails, but is the format used for our log files\!

Changes against parent e88e1decd486a2f424cf6aaa81a2fc4860fff55a

  patched  libpurple/tests/test_util.c

-------------- next part --------------
============================================================
--- libpurple/tests/test_util.c	9bde46e7f01384240bb1aa1db759e2f80ed7c5de
+++ libpurple/tests/test_util.c	2895298a54079249128614404fe3bc757cfa8234
@@ -156,6 +156,8 @@ START_TEST(test_util_str_to_time)
 {
 	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
 


More information about the Commits mailing list