mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
74 lines
1.8 KiB
C++
74 lines
1.8 KiB
C++
/* Copyright (C) 2013
|
|
* swift Project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKMISCTEST_TESTPHYSICALQUANTITIESBASE_H
|
|
#define BLACKMISCTEST_TESTPHYSICALQUANTITIESBASE_H
|
|
|
|
#include <QtTest/QtTest>
|
|
#include "blackmisc/pq/constants.h"
|
|
|
|
namespace BlackMiscTest
|
|
{
|
|
//! Physical quantities, basic tests
|
|
class CTestPhysicalQuantities : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Standard test case constructor
|
|
explicit CTestPhysicalQuantities(QObject *parent = nullptr) : QObject(parent) {}
|
|
|
|
private slots:
|
|
//! Basic unit tests for physical units
|
|
void unitsBasics();
|
|
|
|
//! Basic tests around length
|
|
void lengthBasics();
|
|
|
|
//! Basic tests about speed
|
|
void speedBasics();
|
|
|
|
//! Frequency tests
|
|
void frequencyTests();
|
|
|
|
//! Testing angles (degrees / radians)
|
|
void angleTests();
|
|
|
|
//! Testing angles
|
|
void massTests();
|
|
|
|
//! Testing pressure
|
|
void pressureTests();
|
|
|
|
//! Testing temperature
|
|
void temperatureTests();
|
|
|
|
//! Testing time
|
|
void timeTests();
|
|
|
|
//! Testing acceleration
|
|
void accelerationTests();
|
|
|
|
//! Testing construction / destruction in memory
|
|
void memoryTests();
|
|
|
|
//! Test parsing on PQs
|
|
void parserTests();
|
|
|
|
//! Basic arithmetic such as +/-
|
|
void basicArithmetic();
|
|
|
|
};
|
|
|
|
} // namespace
|
|
|
|
#endif // guard
|