YARP
Yet Another Robot Platform
TestAsserter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_ROBOTTESTINGFRAMEWORK_YARPTESTASSERTER_H
10 #define YARP_ROBOTTESTINGFRAMEWORK_YARPTESTASSERTER_H
11 
13 #include <yarp/sig/Vector.h>
14 
15 namespace yarp {
16 namespace robottestingframework {
17 
23 {
24 public:
25  explicit TestAsserter();
26  virtual ~TestAsserter();
27 
47  static bool isApproxEqual(const double *left,
48  const double *right,
49  const double *l_thresholds,
50  const double *h_thresholds,
51  int length);
52 
65  static bool isApproxEqual(const double *left,
66  const double *right,
67  const double *thresholds,
68  int length);
69 
81  static bool isApproxEqual(const yarp::sig::Vector &left,
82  const yarp::sig::Vector &right,
83  const yarp::sig::Vector &thresholds);
84 
95  static bool isApproxEqual(double left,
96  double right,
97  double l_th,
98  double h_th);
99 
100 private:
101  class Private;
102  Private * const mPriv;
103 };
104 
105 
106 } // namespace robottestingframework
107 } // namespace yarp
108 
109 #endif // YARP_ROBOTTESTINGFRAMEWORK_YARPTESTASSERTER_H
Vector.h
contains the definition of a Vector type
YARP_robottestingframework_API
#define YARP_robottestingframework_API
Definition: api.h:18
api.h
yarp::sig::VectorOf< double >
yarp::robottestingframework::TestAsserter::Private
Definition: TestAsserter.cpp:16
yarp::robottestingframework::TestAsserter
The yarp::robottestingframework::TestAsserter class is used to throw exception or to report messages/...
Definition: TestAsserter.h:23
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18