Code-Eli  0.3.6
traits_test_suite.hpp
Go to the documentation of this file.
1 /*********************************************************************************
2 * Copyright (c) 2013 David D. Marshall <ddmarsha@calpoly.edu>
3 *
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * David D. Marshall - initial code and implementation
11 ********************************************************************************/
12 
13 #ifndef traits_test_suite_hpp
14 #define traits_test_suite_hpp
15 
16 #include <limits> // numeric_limits
17 
18 #include "eli/util/traits.hpp"
19 
20 template<typename data__>
21 class traits_test_suite : public Test::Suite
22 {
23  protected:
24  void AddTests(const float &)
25  {
27  }
28 
29  void AddTests(const double &)
30  {
32  }
33 
34  void AddTests(const long double &)
35  {
37  }
38 
39  public:
41  {
42  // add the tests
43  AddTests(data__());
44  }
46  {
47  }
48 
49  private:
50  typedef data__ data_type;
51 
52  private:
53  void cast_test()
54  {
55  }
56 };
57 
58 #endif
data__ data_type
Definition: traits_test_suite.hpp:50
void cast_test()
Definition: traits_test_suite.hpp:53
void AddTests(const double &)
Definition: traits_test_suite.hpp:29
traits_test_suite()
Definition: traits_test_suite.hpp:40
Definition: traits_test_suite.hpp:21
void AddTests(const long double &)
Definition: traits_test_suite.hpp:34
~traits_test_suite()
Definition: traits_test_suite.hpp:45
void AddTests(const float &)
Definition: traits_test_suite.hpp:24