void test()
  {
   if( b!=FuncB(a) || c!=FuncC(a) )
     {
      Printf(Exception,"fail");
     }
  }
示例#2
0
int main()
{
    printf("graph:\n"
           "  tst-2 -> b -> a\n"
           "           c -> a\n"
           "           d -> a\n"
           "           a\n");
    return FuncA() + FuncB() + FuncC() + FuncD();
}
示例#3
0
    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;
    }
示例#4
0
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);
  }