void test() { if( b!=FuncB(a) || c!=FuncC(a) ) { Printf(Exception,"fail"); } }
int main() { printf("graph:\n" " tst-2 -> b -> a\n" " c -> a\n" " d -> a\n" " a\n"); return FuncA() + FuncB() + FuncC() + FuncD(); }
bool ColorFilterDataTest(bool create, int width, int height, const FuncC & f) { bool result = true; for(View::Format format = View::Gray8; format <= View::Bgra32; format = View::Format(format + 1)) { result = result && ColorFilterDataTest(create, width, height, format, FuncC(f.func, f.description + Data::Description(format))); } return result; }
int main() { unsigned u; u = FuncA() | FuncB() | FuncC(); return u == 0x42424242 ? 0 : 1; }
void set(uint16 x) { a=x; b=FuncB(x); c=FuncC(x); }