Translations:KDevelop5/Manual/Code generation with templates/75/en: Difference between revisions
Appearance
Importing a new version from external source |
Importing a new version from external source |
||
Line 1: | Line 1: | ||
* testNumberOfPassengers | * testNumberOfPassengers<syntaxhighlight lang="cpp" line>void TestBus::testNumberOfPassengers() | ||
{ | { | ||
m_bus.setNumberOfPassengers(1); | m_bus.setNumberOfPassengers(1); | ||
QVERIFY(m_bus.numberOfPassengers() == 1); | QVERIFY(m_bus.numberOfPassengers() == 1); | ||
}</ | }</syntaxhighlight> |
Latest revision as of 08:38, 2 April 2020
- testNumberOfPassengers
void TestBus::testNumberOfPassengers() { m_bus.setNumberOfPassengers(1); QVERIFY(m_bus.numberOfPassengers() == 1); }