浏览代码

* 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);



正在加载...
取消
保存