4 #include "brl_checks.h"
7 main(int argc, char **argv)
10 const char* table = "pass2.ctb";
14 /* First check a plain word to see if inpos handling generally
16 const char* str1 = "Rene";
17 const int expected_inpos1[] = {0,1,2,3,3};
19 result |= check_inpos(table, str1, expected_inpos1);
21 /* then try a word which uses pass2 and makes the output longer */
22 const char* str2 = "Reno";
23 const int expected_inpos2[] = {0,1,2,3,3};
25 result |= check_inpos(table, str2, expected_inpos2);
27 /* finally try a word also uses pass2, deletes a char from the
28 output and essentially shortens the output */
29 const char* str3 = "xRen";
30 const int expected_inpos3[] = {1,2,3};
32 result |= check_inpos(table, str3, expected_inpos3);