Merge commit 'push-into-head'
[git/dscho.git] / test-strbuf.c
blob479fa08f203ca0919fedae8e79ff993bff527db7
1 #include "cache.h"
2 #include "strbuf.h"
4 int main(int argc, char **argv)
6 struct strbuf buf;
7 #define TEST_FORMAT \
8 "'%%%.*s,%x,%05X,%u,%i,% 4d,%3d,%c,%3d'", \
9 5, "Hello, World!", 27, 27, -1, -1, 1, 5, ':', 1234
11 strbuf_initf(&buf, TEST_FORMAT);
12 printf("result=%s\n", buf.buf);
13 printf("expect=" TEST_FORMAT);
14 strbuf_release(&buf);
16 return 0;