mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-12 14:34:07 +08:00
Add test_helper.c
This commit is contained in:
parent
b7d6f52190
commit
ea01f48171
25
test_helper.c
Normal file
25
test_helper.c
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/* --------------------------------------------------------------
|
||||||
|
* File : test_helper.c
|
||||||
|
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
|
* Created on : <2023-08-30>
|
||||||
|
* Last modified : <2023-08-30>
|
||||||
|
*
|
||||||
|
* test_helper:
|
||||||
|
*
|
||||||
|
* 测试 helper.h 中的辅助函数
|
||||||
|
* -------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include "helper.h"
|
||||||
|
|
||||||
|
int
|
||||||
|
main (int argc, char const *argv[])
|
||||||
|
{
|
||||||
|
xy_useutf8();
|
||||||
|
puts(xy_strjoin("中文输出", "test"));
|
||||||
|
puts(xy_strjoin("中文输出2", "test"));
|
||||||
|
|
||||||
|
xy_success("成功输出");
|
||||||
|
xy_warn("警告输出");
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user