Go to the source code of this file.
#define BOOST_TEST_MODULE (tableAs test) |
BOOST_AUTO_TEST_CASE |
( |
tableAs_simple |
| ) |
|
Definition at line 112 of file tableAs_t.cc.
114 auto const mother =
config().mother();
115 auto const ref = Person{
"Angela", 32};
116 BOOST_TEST(mother == ref);
BOOST_AUTO_TEST_CASE |
( |
tableAs_default_simple |
| ) |
|
Definition at line 119 of file tableAs_t.cc.
121 auto const father =
config().father();
122 auto const ref = Person{
"John", 30};
123 BOOST_TEST(father == ref);
BOOST_AUTO_TEST_CASE |
( |
tableAs_inSequence |
| ) |
|
Definition at line 126 of file tableAs_t.cc.
128 auto const kids =
config().kids();
129 auto const ref = {Person{
"Alice", 1},
131 Person{
"Charlie", 3},
132 Person{
"Danielle", 4},
134 BOOST_TEST(kids == ref, boost::test_tools::per_element{});
BOOST_AUTO_TEST_CASE |
( |
optionalTableAs |
| ) |
|
Definition at line 137 of file tableAs_t.cc.
140 BOOST_TEST(
config().contact_info(info));
141 auto const ref = ContactInfo{
"123 S. 45th Ave.",
"(123) 456-7890"};
142 BOOST_TEST(info == ref);