ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 단위 테스트 - C++
    개발/테스트 2009. 5. 25. 22:03

    #include "apImage8.h"
    #include "unitTest.h"

    UTFUNC(image8)
    {
      setDescription ("apImage8");

      apImage8 p2 (640, 480);
      VERIFY(p2.width()  == 640);
      VERIFY(p2.height() == 480);
      ...
    }

    int main(int argc, char* argv[])
    {
      bool state = apUnitTest::gOnly().run();
      apUnitTest::gOnly().dumpResults(std::cout);

      return state;
    }

Designed by Tistory.