Debian Codegraph @

tests/attributeNames.c

raw symbols SCIP
1 /* liblouis Braille Translation and Back-Translation Library
2
3 Copyright (C) 2020 Swiss Library for the Blind, Visually Impaired and Print Disabled
4
5 Copying and distribution of this file, with or without modification,
6 are permitted in any medium without royalty provided the copyright
7 notice and this notice are preserved. This file is offered as-is,
8 without any warranty. */
9
10 #include <config.h>
11
12 #include <stdio.h>
13 #include <string.h>
14 #include <stdlib.h>
15 #include "internal.h"
16
17 int
18 main (int argc, char **argv)
19 {
20 const char* table;
21 // the following table contains an invalid attribute name and should not compile
22 table = "tests/tables/attribute/attributeName_invalid.utb";
23 if (lou_getTable(table)) {
24 fprintf(stderr, "%s should be invalid\n", table);
25 return 1;
26 }
27 table = "tests/tables/attribute/attributeName_valid.utb";
28 if (!lou_getTable(table)) {
29 fprintf(stderr, "%s should be valid\n", table);
30 return 1;
31 }
32 lou_free();
33 return 0;
34 }