blob: ab07f46338f3bd468dc9f76d34012c2222618c8a [file] [log] [blame]
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "liblouis.h"
#include "louis.h"
int
main(int argc, char **argv)
{
int success = 0;
char * match;
const char * tables[] = {"tablesWithMetadata/foo","tablesWithMetadata/bar",NULL};
lou_setLogLevel(LOG_DEBUG);
lou_indexTables(tables);
match = lou_findTable("id:foo");
success |= (!match || (strstr(match, "tablesWithMetadata/foo") == NULL));
match = lou_findTable("language:en");
success |= (!match || (strstr(match, "tablesWithMetadata/bar") == NULL));
lou_free();
return success;
}