Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / liblouis / src / tests / hyphenate_alderen.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <assert.h>
4 #include "brl_checks.h"
5
6 int main(int argc, char **argv)
7 {
8   int ret = 0;
9   char *tables = "da-dk-g26.ctb";
10   char *word = "alderen";
11   char * hyphens = calloc(9, sizeof(char));
12
13   hyphens[0] = '0';
14   hyphens[1] = '0';
15   hyphens[2] = '1';
16   hyphens[3] = '0';
17   hyphens[4] = '1';
18   hyphens[5] = '0';
19   hyphens[6] = '0';
20
21   ret = check_hyphenation(tables, word, hyphens);
22   assert(hyphens[7] == '\0');
23   assert(hyphens[8] == '\0');
24   free(hyphens);
25   return ret;
26
27 }