Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / libtest / lib517.c
bloba34a8450d6c77436129f2644445896374e3a7c41
1 /*****************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
8 * $Id: lib517.c,v 1.1.1.1 2008-09-23 16:32:06 hoffman Exp $
9 */
11 #include "test.h"
13 const char *dates[]={
14 "Sun, 06 Nov 1994 08:49:37 GMT",
15 "Sunday, 06-Nov-94 08:49:37 GMT",
16 "Sun Nov 6 08:49:37 1994",
17 "06 Nov 1994 08:49:37 GMT",
18 "06-Nov-94 08:49:37 GMT",
19 "Nov 6 08:49:37 1994",
20 "06 Nov 1994 08:49:37",
21 "06-Nov-94 08:49:37",
22 "1994 Nov 6 08:49:37",
23 "GMT 08:49:37 06-Nov-94 Sunday",
24 "94 6 Nov 08:49:37",
25 "1994 Nov 6",
26 "06-Nov-94",
27 "Sun Nov 6 94",
28 "1994.Nov.6",
29 "Sun/Nov/6/94/GMT",
30 "Sun, 06 Nov 1994 08:49:37 CET",
31 "06 Nov 1994 08:49:37 EST",
32 "Sun, 12 Sep 2004 15:05:58 -0700",
33 "Sat, 11 Sep 2004 21:32:11 +0200",
34 "20040912 15:05:58 -0700",
35 "20040911 +0200",
36 /* "2094 Nov 6", See ../data/test517 for details */
37 NULL
40 int test(char *URL)
42 int i;
44 (void)URL; /* not used */
46 for(i=0; dates[i]; i++) {
47 printf("%d: %s => %ld\n", i, dates[i], (long)curl_getdate(dates[i], NULL));
50 return 0;