本文整理汇总了C++中OE::print方法的典型用法代码示例。如果您正苦于以下问题:C++ OE::print方法的具体用法?C++ OE::print怎么用?C++ OE::print使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OE
的用法示例。
在下文中一共展示了OE::print方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: run_test_suit
bool run_test_suit(OE oe, TestSuit suit) {
bool success = True;
uint i = 0;
uint j = 0;
// indent suit name print out
for (j = 0; j < indent_level; ++j) {
oe->print(" ");
}
PRINT(oe,"[SUIT] %s",suit.name);
// for each inferior test suit run it
for(i = 0;i < suit.lsubs;++i) {
__get_suit__ fn = suit.subs[i];
TestSuit * subsuit = (TestSuit *)fn(oe);
if (subsuit) {
indent_level++;
run_test_suit(oe, *subsuit);
indent_level--;
}
}
// for each test in this suit run it.
for(i = 0; i < suit.ltest;++i) {
uint j = 0;
Test t = suit.tests[i];
bool r = t.f(oe);
for (j = 0; j < indent_level; ++j) {
oe->print(" ");
}
if (r == True) {
PRINT(oe, "[TEST] %s [OK]",suit.tests[i].name);
} else {
PRINT(oe, "[TEST] %s [FAILED]",suit.tests[i].name);
success = False;
}
}
return success;
}
示例2: test_print_one_argument
static int test_print_one_argument(OE oe) {
oe->print("\n%d argument(s) given\n", 1);
return 1;
}
示例3: test_print_no_arguments
static int test_print_no_arguments(OE oe) {
oe->print("\nno variadic arguments given\n");
return 1;
}