123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef GEN_TEST_NUMBERS_HPP
- #define GEN_TEST_NUMBERS_HPP
- #include <vector>
- /**
- @author Frank Michler,,, <frank@pc13365>
- */
- template<class T>
- std::vector<T> getFloatTestNumbers()
- {
- T mynumbers[] = {1.1,2.2,3.3,4.4,5.5,6.616,2.,77.,29.,42.,66.};
- std::vector<T> MyVector(mynumbers, mynumbers + sizeof(mynumbers) / sizeof(T) );
- return MyVector;
- }
- template<class T>
- std::vector<T> getFloatTestNumbers2()
- {
- T mynumbers[] = {3.3, 4.4, 77.44, 99.334, 96.4, 9., 3.1415, 66.};
- std::vector<T> MyVector(mynumbers, mynumbers + sizeof(mynumbers) / sizeof(T) );
- return MyVector;
- }
- template<class T>
- std::vector<T> getIntTestNumbers()
- {
- T mynumbers[] = {11, 42, 66, 69, 1976, 2010, 2,-77,29,42,66};
- std::vector<T> MyVector(mynumbers, mynumbers + sizeof(mynumbers) / sizeof(T) );
- return MyVector;
- }
- template<class T>
- std::vector<T> getCharTestNumbers()
- {
- T mynumbers[] = {11, 42, 66, 69, 127, -21, 2,-77,29,42,66};
- std::vector<T> MyVector(mynumbers, mynumbers + sizeof(mynumbers) / sizeof(T) );
- return MyVector;
- }
- template<class T>
- std::vector<T> getIntTestNumbers2()
- {
- T mynumbers[] = {93, 8492, 9, 7843, 11, 84, 8943, 69, 33};
- std::vector<T> MyVector(mynumbers, mynumbers + sizeof(mynumbers) / sizeof(T) );
- return MyVector;
- }
- #endif
|