Translation update done using Pootle.
[gammu.git] / tests / sql-parse-date.c
blobfeab457c474cd982f433377fdce68abdf14bae8b
1 /**
2 * Simple test case for array manipulations.
3 */
5 #include "../helper/array.h"
6 #include "common.h"
7 #include <gammu-smsd.h>
8 #include "../smsd/services/sql.h" /* For SMSDSQL_ParseDate */
10 int main(int argc UNUSED, char **argv UNUSED)
12 test_result(SMSDSQL_ParseDate(NULL, "2005-05-24 22:53:30") > 0);
13 test_result(SMSDSQL_ParseDate(NULL, "0000-00-00 00:00:00") == -2);
14 test_result(SMSDSQL_ParseDate(NULL, "0000-00-00 xx:00:00") == -1);
15 return 0;