test(simple): 重构测试文件结构并添加新的测试用例
将原有的测试文件移动到专门的返回值测试目录(return_val_cases)中, 同时添加了标准输出测试目录(stdout_val_cases),新增了参数传递测试用例 和标准输出测试用例,使测试结构更加清晰和模块化。
This commit is contained in:
6
tests/simple/stdout_val_cases/01_include.c
Normal file
6
tests/simple/stdout_val_cases/01_include.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "stdio.h"
|
||||
|
||||
int main(void) {
|
||||
puts("hello world");
|
||||
return 0;
|
||||
}
|
||||
7
tests/simple/stdout_val_cases/stdio.h
Normal file
7
tests/simple/stdout_val_cases/stdio.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef __SCC_STDIO_H__
|
||||
#define __SCC_STDIO_H__
|
||||
|
||||
extern int puts(const char *str);
|
||||
extern char *gets(char *buff);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user