| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
#include <config.h> |
| 12 |
|
| 13 |
#include <stdio.h> |
| 14 |
#include <string.h> |
| 15 |
#include <stdlib.h> |
| 16 |
#include "liblouis.h" |
| 17 |
|
| 18 |
int |
| 19 |
main(int argc, char **argv) |
| 20 |
{ |
| 21 |
const char *goodTable = "tables/en-us-g1.ctb"; |
| 22 |
const char *badTable = "tests/tables/bad.ctb"; |
| 23 |
int result = 0; |
| 24 |
|
| 25 |
if (lou_checkTable(goodTable) == 0) |
| 26 |
{ |
| 27 |
printf("Getting %s failed, expected success\n", goodTable); |
| 28 |
result = 1; |
| 29 |
} |
| 30 |
|
| 31 |
if (lou_checkTable(badTable) != 0) |
| 32 |
{ |
| 33 |
printf("Getting %s succeeded, expected failure\n", badTable); |
| 34 |
result = 1; |
| 35 |
} |
| 36 |
|
| 37 |
if (lou_checkTable(goodTable) == 0) |
| 38 |
{ |
| 39 |
printf("Getting %s failed, expected success\n", goodTable); |
| 40 |
result = 1; |
| 41 |
} |
| 42 |
|
| 43 |
lou_free(); |
| 44 |
|
| 45 |
return result; |
| 46 |
} |