mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
Initial version of physical quantities
This commit is contained in:
66
tests/blackcore/testphysicalquantitiesbase.h
Normal file
66
tests/blackcore/testphysicalquantitiesbase.h
Normal file
@@ -0,0 +1,66 @@
|
||||
#ifndef TESTPHYSICALQUANTITIESBASE_H
|
||||
#define TESTPHYSICALQUANTITIESBASE_H
|
||||
|
||||
#include <QtTest/QtTest>
|
||||
#include "../../src/blackcore/pqdistance.h"
|
||||
#include "../../src/blackcore/pqfrequency.h"
|
||||
#include "../../src/blackcore/pqspeed.h"
|
||||
#include "../../src/blackcore/pqangle.h"
|
||||
#include "../../src/blackcore/pqmass.h"
|
||||
#include "../../src/blackcore/pqpressure.h"
|
||||
using namespace BlackCore;
|
||||
|
||||
namespace BlackCoreTest {
|
||||
|
||||
/*!
|
||||
* \brief Physical quantities,basic tests
|
||||
*/
|
||||
class TestPhysicalQuantitiesBase : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
/*!
|
||||
* \brief Standard test case constructor
|
||||
* \param parent
|
||||
*/
|
||||
explicit TestPhysicalQuantitiesBase(QObject *parent = 0);
|
||||
private slots:
|
||||
/*!
|
||||
* \brief Basic unit tests for physical units
|
||||
*/
|
||||
void unitsBasics();
|
||||
/*!
|
||||
* \brief Basic tests around distance
|
||||
*/
|
||||
void distanceBasics();
|
||||
/*!
|
||||
* \brief Basic tests about speed
|
||||
*/
|
||||
void speedBasics();
|
||||
/*!
|
||||
* \brief Frequency tests
|
||||
*/
|
||||
void frequencyTests();
|
||||
/*!
|
||||
* \brief Testing angles (degrees / radians)
|
||||
*/
|
||||
void angleTests();
|
||||
/*!
|
||||
* \brief Testing angles
|
||||
*/
|
||||
void massTests();
|
||||
/*!
|
||||
* \brief Testing pressure
|
||||
*/
|
||||
void pressureTests();
|
||||
|
||||
/*!
|
||||
* \brief testing construction / destruction in memory
|
||||
*/
|
||||
void memoryTests();
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // TESTPHYSICALQUANTITIESBASE_H
|
||||
Reference in New Issue
Block a user