瀏覽代碼

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

tags/v0.99.beta14
Sam Hocevar sam 17 年之前
父節點
當前提交
0a02cbb312
共有 1 個檔案被更改,包括 14 行新增6 行删除
  1. +14
    -6
      test/text.c

+ 14
- 6
test/text.c 查看文件

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

#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[])
{
@@ -65,6 +68,11 @@ int main(int argc, char *argv[])
fwrite(buffer, len, 1, stdout);
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(cv);



Loading…
取消
儲存