Autopysta
Loading...
Searching...
No Matches
misc.h
Go to the documentation of this file.
1
13#ifndef _MISC_AUTOPYSTA
14#define _MISC_AUTOPYSTA
15
16#include <string>
17#include <sstream>
18#include <ctime>
19#include <vector>
20
30std::string version();
31
40class test {
41public:
53 static bool range_inc(double number, double min, double max);
54
67 template<typename T, typename A>
68 static bool length(std::vector<T, A> v, int l);
69};
70
71#endif // _MISC_AUTOPYSTA
A utility class that provides common testing functions.
Definition misc.h:40
static bool range_inc(double number, double min, double max)
Check if a number is within an inclusive range.
static bool length(std::vector< T, A > v, int l)
Check if a vector has a specific length.
std::string version()
Get the software version information.