2  * test-string-pool.c: code to exercise the svn importer's string pool
 
   5 #include "git-compat-util.h"
 
   6 #include "vcs-svn/string_pool.h"
 
   8 int main(int argc, char *argv[])
 
  10         const uint32_t unequal = pool_intern("does not equal");
 
  11         const uint32_t equal = pool_intern("equals");
 
  16                 usage("test-string-pool <string>,<string>");
 
  18         n = pool_tok_seq(3, buf, ",-", argv[1]);
 
  20                 die("too many strings");
 
  22                 die("too few strings");
 
  25         buf[1] = (buf[0] == buf[2]) ? equal : unequal;
 
  26         pool_print_seq(3, buf, ' ', stdout);