You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
380 B
C
22 lines
380 B
C
#include "test.h"
|
|
|
|
#include "trie.h"
|
|
|
|
#include <sys/stat.h>
|
|
#include <stdlib.h>
|
|
|
|
bool ffdb_test()
|
|
{
|
|
const char* d = "/tmp/ffdb-test";
|
|
system( "rm -Rvf /tmp/ffdb-test" );
|
|
mkdir( d, 0755 );
|
|
|
|
bool result = true;
|
|
|
|
result &= ffdb_trie_set( d, "https://example.com/actor", "T" );
|
|
result &= ffdb_trie_set( d, "https://apogee.polaris-1.work/owner/actor", "T" );
|
|
|
|
return result;
|
|
}
|
|
|