Macros | Typedefs | Functions
column_width_test.cc File Reference
#include "boost/test/unit_test.hpp"
#include "cetlib/column_width.h"
#include <string>
#include <vector>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   (column width test)
 

Typedefs

using column = std::vector< std::string >
 

Functions

 BOOST_AUTO_TEST_CASE (default_behavior)
 

Macro Definition Documentation

#define BOOST_TEST_MODULE   (column width test)

Definition at line 1 of file column_width_test.cc.

Typedef Documentation

Definition at line 9 of file column_width_test.cc.

Function Documentation

BOOST_AUTO_TEST_CASE ( default_behavior  )

Definition at line 13 of file column_width_test.cc.

14 {
15  column c;
16  BOOST_TEST(cet::column_width(c) == 0u);
17  c.push_back("abc");
18  c.push_back("abc");
19  c.push_back("ab");
20  c.push_back("a");
21  c.push_back("ab");
22  c.push_back("abc");
23  BOOST_TEST(cet::column_width(c) == 3u);
24  c.insert(c.begin(), "wxyz");
25  BOOST_TEST(cet::column_width(c) == 4u);
26  c.push_back("lmnop");
27  BOOST_TEST(cet::column_width(c) == 5u);
28 }
std::string::size_type column_width(std::vector< std::string > const &)
Definition: column_width.cc:6
std::vector< std::string > column