11#include "clar_libgit2.h"
22
3- #include "util .h"
3+ #include "date .h"
44
55void test_date_rfc2822__format_rfc2822_no_offset (void )
66{
77 git_time t = {1397031663 , 0 };
88 char buf [GIT_DATE_RFC2822_SZ ];
99
10- cl_git_pass (git__date_rfc2822_fmt (buf , sizeof (buf ), & t ));
10+ cl_git_pass (git_date_rfc2822_fmt (buf , sizeof (buf ), & t ));
1111 cl_assert (strcmp (buf , "Wed, 9 Apr 2014 08:21:03 +0000" ) == 0 );
1212}
1313
@@ -16,7 +16,7 @@ void test_date_rfc2822__format_rfc2822_positive_offset(void)
1616 git_time t = {1397031663 , 120 };
1717 char buf [GIT_DATE_RFC2822_SZ ];
1818
19- cl_git_pass (git__date_rfc2822_fmt (buf , sizeof (buf ), & t ));
19+ cl_git_pass (git_date_rfc2822_fmt (buf , sizeof (buf ), & t ));
2020 cl_assert (strcmp (buf , "Wed, 9 Apr 2014 10:21:03 +0200" ) == 0 );
2121}
2222
@@ -25,7 +25,7 @@ void test_date_rfc2822__format_rfc2822_negative_offset(void)
2525 git_time t = {1397031663 , -120 };
2626 char buf [GIT_DATE_RFC2822_SZ ];
2727
28- cl_git_pass (git__date_rfc2822_fmt (buf , sizeof (buf ), & t ));
28+ cl_git_pass (git_date_rfc2822_fmt (buf , sizeof (buf ), & t ));
2929 cl_assert (strcmp (buf , "Wed, 9 Apr 2014 06:21:03 -0200" ) == 0 );
3030}
3131
@@ -35,6 +35,6 @@ void test_date_rfc2822__format_rfc2822_buffer_too_small(void)
3535 git_time t = {1397031663 + 86400 , 0 };
3636 char buf [GIT_DATE_RFC2822_SZ - 1 ];
3737
38- cl_git_fail (git__date_rfc2822_fmt (buf , sizeof (buf ), & t ));
38+ cl_git_fail (git_date_rfc2822_fmt (buf , sizeof (buf ), & t ));
3939}
4040
0 commit comments