YARP
Yet Another Robot Platform
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 
12 namespace yarp {
13 namespace robottestingframework {
14 
20 {
21 public:
22  explicit TestAsserter();
23  virtual ~TestAsserter();
24 
44  static bool isApproxEqual(const double *left,
45  const double *right,
46  const double *l_thresholds,
47  const double *h_thresholds,
48  int length);
49 
62  static bool isApproxEqual(const double *left,
63  const double *right,
64  const double *thresholds,
65  int length);
66 
78  static bool isApproxEqual(const yarp::sig::Vector &left,
79  const yarp::sig::Vector &right,
80  const yarp::sig::Vector &thresholds);
81 
92  static bool isApproxEqual(double left,
93  double right,
94  double l_th,
95  double h_th);
96 
97 private:
98  class Private;
99  Private * const mPriv;
100 };
101 
102 
103 } // namespace robottestingframework
104 } // namespace yarp
105 
106 #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/...
Definition: TestAsserter.h:20
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_robottestingframework_API
Definition: api.h:17