libgrapheme

grapheme cluster utility library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | LICENSE

grapheme-test.c (406B)


      1 /* See LICENSE file for copyright and license details. */
      2 #include <stddef.h>
      3 
      4 #include "util.h"
      5 
      6 int
      7 main(int argc, char *argv[])
      8 {
      9 	struct segment_test *st = NULL;
     10 	size_t numsegtests = 0;
     11 
     12 	(void)argc;
     13 
     14 	segment_test_list_parse("data/GraphemeBreakTest.txt", &st, &numsegtests);
     15 	segment_test_list_print(st, numsegtests, "grapheme_test", argv[0]);
     16 	segment_test_list_free(st, numsegtests);
     17 
     18 	return 0;
     19 }