test.h
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 35 行
H
35 行
//
// Copyright (C) 1991 Texas Instruments Incorporated.
//
// Permission is granted to any individual or institution to use, copy, modify,
// and distribute this software, provided that this complete copyright and
// permission notice is maintained, intact, in all copies and supporting
// documentation.
//
// Texas Instruments Incorporated provides this software "as is" without
// express or implied warranty.
//
extern void test_start(char* name);
extern void test_begin(const char* msg);
extern void test_perform(int success);
extern void test_summary();
#define START(s) test_start(s);
#define TEST(s,p,v) \
{ \
test_begin(s); \
test_perform(p==v); \
}
#define TEST_RUN(s,x,p,v) \
{ \
x; \
test_begin(s); \
test_perform(p==v); \
}
#define SUMMARY() test_summary();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?