Fixed formatting in DataTest.*

This commit is contained in:
Friedrich Wilckens 2017-01-17 10:39:49 -08:00
parent bd19e0a0fe
commit 5a8613eb2a
2 changed files with 9 additions and 9 deletions

View File

@ -1408,13 +1408,13 @@ void DataTest::testExternalBindingAndExtraction()
void DataTest::testStdTuple()
{
using Row = std::tuple<std::string, std::string, int>;
using Row = std::tuple<std::string, std::string, int>;
Session sess(SessionFactory::instance().create("test", "cs"));
Row person = std::make_tuple(std::string("Scott"), std::string("Washington, DC"), 42);
sess << "INSERT INTO Person(name, address, age) VALUES (?, ?, ?)", use(person), now;
std::vector<Row> rows;
sess << "SELECT name, address, age FROM Person", into(rows) , now;
Session sess(SessionFactory::instance().create("test", "cs"));
Row person = std::make_tuple(std::string("Scott"), std::string("Washington, DC"), 42);
sess << "INSERT INTO Person(name, address, age) VALUES (?, ?, ?)", use(person), now;
std::vector<Row> rows;
sess << "SELECT name, address, age FROM Person", into(rows) , now;
}
#endif // __cplusplus >= 201103L
@ -1450,9 +1450,9 @@ CppUnit::Test* DataTest::suite()
CppUnit_addTest(pSuite, DataTest, testSimpleRowFormatter);
CppUnit_addTest(pSuite, DataTest, testJSONRowFormatter);
CppUnit_addTest(pSuite, DataTest, testDateAndTime);
CppUnit_addTest(pSuite, DataTest, testExternalBindingAndExtraction);
CppUnit_addTest(pSuite, DataTest, testExternalBindingAndExtraction);
#if __cplusplus >= 201103L
CppUnit_addTest(pSuite, DataTest, testStdTuple);
CppUnit_addTest(pSuite, DataTest, testStdTuple);
#endif

View File

@ -48,7 +48,7 @@ public:
void testExternalBindingAndExtraction();
#if __cplusplus >= 201103L
void testStdTuple();
void testStdTuple();
#endif
void setUp();