Classes | Macros | Functions
uniform_type_name_test.cc File Reference
#include "boost/test/unit_test.hpp"
#include "canvas/Utilities/uniform_type_name.h"
#include <map>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  MyUIntTemplate_t< int, typename >
 
struct  MyULongTemplate_t< long, typename >
 

Macros

#define BOOST_TEST_MODULE   (uniform_type_name_test)
 

Functions

 BOOST_AUTO_TEST_CASE (allocator_removal)
 
 BOOST_AUTO_TEST_CASE (comparator_removal)
 
 BOOST_AUTO_TEST_CASE (int_type_names)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (uniform_type_name_test)

Definition at line 1 of file uniform_type_name_test.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( allocator_removal  )

Definition at line 29 of file uniform_type_name_test.cc.

30 {
31  testit(typeid(std::vector<std::string>), "std::vector<std::string>");
32 }
BOOST_AUTO_TEST_CASE ( comparator_removal  )

Definition at line 34 of file uniform_type_name_test.cc.

35 {
36  testit(typeid(std::map<std::string, std::string>),
37  "std::map<std::string,std::string>");
38 }
BOOST_AUTO_TEST_CASE ( int_type_names  )

Definition at line 40 of file uniform_type_name_test.cc.

41 {
42  testit(typeid(unsigned long long), "ULong64_t");
43  testit(typeid(long long), "Long64_t");
44  testit(typeid(MyUIntTemplate_t<3u, std::string>),
45  "MyUIntTemplate_t<3,std::string>");
47  "MyULongTemplate_t<4,std::string>");
48 }