YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
TestAsserter.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_ROBOTTESTINGFRAMEWORK_YARPTESTASSERTER_H
7#define YARP_ROBOTTESTINGFRAMEWORK_YARPTESTASSERTER_H
8
10#include <yarp/sig/Vector.h>
11
13
19{
20public:
21 explicit TestAsserter();
22 virtual ~TestAsserter();
23
43 static bool isApproxEqual(const double *left,
44 const double *right,
45 const double *l_thresholds,
46 const double *h_thresholds,
47 int length);
48
61 static bool isApproxEqual(const double *left,
62 const double *right,
63 const double *thresholds,
64 int length);
65
77 static bool isApproxEqual(const yarp::sig::Vector &left,
78 const yarp::sig::Vector &right,
79 const yarp::sig::Vector &thresholds);
80
91 static bool isApproxEqual(double left,
92 double right,
93 double l_th,
94 double h_th);
95
96private:
97 class Private;
98 Private * const mPriv;
99};
100
101
102} // namespace yarp::robottestingframework
103
104#endif // YARP_ROBOTTESTINGFRAMEWORK_YARPTESTASSERTER_H
contains the definition of a Vector type
The yarp::robottestingframework::TestAsserter class is used to throw exception or to report messages/...
#define YARP_robottestingframework_API
Definition api.h:17