Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / liblouis / src / tests / hyphenate_achena.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 = "achena";
11   char * hyphens = calloc(8, sizeof(char));
12
13   hyphens[0] = '0';
14   hyphens[1] = '1';
15   hyphens[2] = '0';
16   hyphens[3] = '0';
17   hyphens[4] = '1';
18   hyphens[5] = '0';
19
20   ret = check_hyphenation(tables, word, hyphens);
21   assert(hyphens[6] == '\0');
22   assert(hyphens[7] == '\0');
23   free(hyphens);
24   return ret;
25 }