Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / liblouis / src / tests / pass0_typebuf.c
1 #include <stdio.h>
2 #include <string.h>
3 #include <stdlib.h>
4 #include "brl_checks.h"
5
6 int
7 main(int argc, char **argv)
8 {
9     int i;
10
11     char* table = "pass0_typebuf.ctb";
12     char* text = "foo baz";
13     char* expected = "foobar .baz";
14     char* typeform = malloc(20 * sizeof(char));
15     for (i = 0; i < 7; i++)
16       typeform[i] = 0;
17     for (i = 4; i < 7; i++)
18       typeform[i] = 1;
19
20     if (!check_translation(table, text, typeform, expected))
21       return 0;
22
23     return 1;
24 }