~donmcc/astr

ref: dde1440227b31412cd8960d67f54c3bbf51e2bec astr/astr_tests.c -rw-r--r-- 288 bytes
dde14402Don McCaughey Added initial source, build system and tests. 1 year, 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <assert.h>
#include <string.h>
#include "astr.h"


static void
test_astr_alloc_empty(void)
{
    char *s = astr_alloc_empty();
    assert(s);
    assert(0 == strlen(s));
    free(s);
}


int
main(int argc, char *argv[])
{
    test_astr_alloc_empty();
    return EXIT_SUCCESS;
}