summaryrefslogtreecommitdiff
path: root/test/bmMenuNew.c
blob: e1b6161465eefac54941d73eac85f81e5c5c59c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdlib.h>
#include <bemenu.h>
#include <assert.h>

int main(int argc, char **argv)
{
    (void)argc, (void)argv;

    // TEST: Instance bmMenu with all possible draw modes.
    {
        bmDrawMode i;
        for (i = 0; i < BM_DRAW_MODE_LAST; ++i) {
            bmMenu *menu = bmMenuNew(i);
            assert(menu != NULL);
            bmMenuRender(menu);
            bmMenuFree(menu);
        }
    }

    return EXIT_SUCCESS;
}

/* vim: set ts=8 sw=4 tw=0 :*/