17 lines
388 B
C
17 lines
388 B
C
|
#include <assert.h>
|
||
|
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
#include "haggis.h"
|
||
|
|
||
|
int main() {
|
||
|
haggis_linkmap *map;
|
||
|
haggis_node *node;
|
||
|
char *path = "output";
|
||
|
|
||
|
map = haggis_linkmap_init();
|
||
|
assert(map != NULL);
|
||
|
node = haggis_create_node(path, sha256, map);
|
||
|
assert(node->filetype.tag == directory);
|
||
|
assert(memcmp(path, node->name.name, 6) == 0);
|
||
|
}
|