Browse Source

* Added a small test for cucul_left() in test/text.c. It is *fucking* ugly.

tags/v0.99.beta14
Sam Hocevar sam 17 years ago
parent
commit
0a02cbb312
1 changed files with 14 additions and 6 deletions
  1. +14
    -6
      test/text.c

+ 14
- 6
test/text.c View File

@@ -25,12 +25,15 @@
#include "cucul.h" #include "cucul.h"


#define STRING \ #define STRING \
" _,----._ \n" \
" (/ @ @ \\) \n" \
" | OO | \n" \
" \\ `--' / \n" \
" `----' \n" \
"Hello world!\n"
" \n" \
" _,----._ \n" \
" (/ @ @ \\) \n" \
" | OO | \n" \
" \\ `--' / \n" \
" `----' \n" \
" \n" \
" Hello world! \n" \
" \n"


int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
@@ -65,6 +68,11 @@ int main(int argc, char *argv[])
fwrite(buffer, len, 1, stdout); fwrite(buffer, len, 1, stdout);
free(buffer); free(buffer);


cucul_left(cv);
buffer = cucul_export_memory(cv, "utf8", &len);
fwrite(buffer, len, 1, stdout);
free(buffer);

cucul_free_canvas(pig); cucul_free_canvas(pig);
cucul_free_canvas(cv); cucul_free_canvas(cv);




Loading…
Cancel
Save