KUnitTest
samplemodule.cpp
Go to the documentation of this file.00001 00026 #include "samplemodule.h" 00027 00028 #include <kunittest/runner.h> 00029 #include <kunittest/module.h> 00030 00031 using namespace KUnitTest; 00032 00033 KUNITTEST_MODULE( kunittest_samplemodule, "Suite1" ) 00034 KUNITTEST_MODULE_REGISTER_TESTER( SampleTester ) 00035 00036 void SampleTester::allTests() 00037 { 00038 int i = 2; 00039 CHECK( i + 2, 4 ); 00040 VERIFY( i + 2 > 3 ); 00041 }