Ignore:
Timestamp:
Sep 27, 2008, 3:12:46 PM (12 years ago)
Author:
Sam Hocevar
Message:

Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/tests/simple.c

    r2299 r2821  
    2020#endif
    2121
    22 #include "cucul.h"
     22#include "caca.h"
    2323
    2424#define TEST(x) \
     
    3535int main(int argc, char *argv[])
    3636{
    37     cucul_canvas_t *cv;
     37    caca_canvas_t *cv;
    3838    int tests = 0, passed = 0;
    3939
    40     cv = cucul_create_canvas(0, 0);
    41     cucul_put_char(cv, 0, 0, 'x');
    42     TEST(cucul_get_char(cv, 0, 0) != 'x');
     40    cv = caca_create_canvas(0, 0);
     41    caca_put_char(cv, 0, 0, 'x');
     42    TEST(caca_get_char(cv, 0, 0) != 'x');
    4343
    44     cucul_set_canvas_size(cv, 1, 1);
    45     TEST(cucul_get_char(cv, 0, 0) != 'x');
    46     TEST(cucul_get_char(cv, 0, 0) == ' ');
     44    caca_set_canvas_size(cv, 1, 1);
     45    TEST(caca_get_char(cv, 0, 0) != 'x');
     46    TEST(caca_get_char(cv, 0, 0) == ' ');
    4747
    48     cucul_put_char(cv, 0, 0, 'y');
    49     TEST(cucul_get_char(cv, 0, 0) == 'y');
     48    caca_put_char(cv, 0, 0, 'y');
     49    TEST(caca_get_char(cv, 0, 0) == 'y');
    5050
    51     cucul_set_canvas_size(cv, 1000, 1000);
    52     TEST(cucul_get_canvas_width(cv) == 1000);
     51    caca_set_canvas_size(cv, 1000, 1000);
     52    TEST(caca_get_canvas_width(cv) == 1000);
    5353
    54     cucul_put_char(cv, 999, 999, 'z');
    55     TEST(cucul_get_char(cv, 999, 999) == 'z');
     54    caca_put_char(cv, 999, 999, 'z');
     55    TEST(caca_get_char(cv, 999, 999) == 'z');
    5656
    57     cucul_free_canvas(cv);
     57    caca_free_canvas(cv);
    5858
    5959    fprintf(stderr, "%i tests, %i errors\n", tests, tests - passed);
Note: See TracChangeset for help on using the changeset viewer.