• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KUnitTest

  • kde3support
  • kunittest
samplemodule.cpp
Go to the documentation of this file.
1
26#include "samplemodule.h"
27
28#include <kunittest/runner.h>
29#include <kunittest/module.h>
30
31using namespace KUnitTest;
32
33KUNITTEST_MODULE( kunittest_samplemodule, "Suite1" )
34KUNITTEST_MODULE_REGISTER_TESTER( SampleTester )
35
36void SampleTester::allTests()
37{
38 int i = 2;
39 CHECK( i + 2, 4 );
40 VERIFY( i + 2 > 3 );
41}
SampleTester
Copyright (C) 2005 Jeroen Wijnhout Jeroen.Wijnhout@kdemail.net
Definition: samplemodule.h:33
module.h
KUNITTEST_MODULE
#define KUNITTEST_MODULE(library, suite)
Definition: module.h:45
KUNITTEST_MODULE_REGISTER_TESTER
#define KUNITTEST_MODULE_REGISTER_TESTER(tester)
Definition: module.h:84
KUnitTest
Copyright (C) 2005 Jeroen Wijnhout Jeroen.Wijnhout@kdemail.net
Definition: module.h:35
runner.h
samplemodule.h
CHECK
#define CHECK(x, y)
Definition: tester.h:335
VERIFY
#define VERIFY(cond)
Definition: tester.h:342
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KUnitTest

Skip menu "KUnitTest"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal