View
- Converted history reports to use ViewText. - Fixed unit test.
This commit is contained in:
@@ -164,9 +164,9 @@ int main (int argc, char** argv)
|
||||
string_view.intraColorOdd (odd_color);
|
||||
string_view.intraColorEven (even_color);
|
||||
|
||||
string_view.add ("One");
|
||||
string_view.add ("Two");
|
||||
string_view.add ("Three");
|
||||
string_view.add (Column::factory ("string", "One"));
|
||||
string_view.add (Column::factory ("string", "Two"));
|
||||
string_view.add (Column::factory ("string", "Three"));
|
||||
|
||||
int row = string_view.addRow ();
|
||||
string_view.set (row, 0, "top left");
|
||||
@@ -177,7 +177,10 @@ int main (int argc, char** argv)
|
||||
string_view.set (row, 0, "bottom left", single_cell);
|
||||
string_view.set (row, 1, "bottom center, containing sufficient text that "
|
||||
"wrapping will occur because it exceeds all "
|
||||
"reasonable values for default width.");
|
||||
"reasonable values for default width. Even in a "
|
||||
"very wide terminal window. Just look at the "
|
||||
"lengths we must go to, to get passing unit tests "
|
||||
"and not flaky tests.");
|
||||
string_view.set (row, 2, "bottom right");
|
||||
|
||||
std::cout << string_view.render ();
|
||||
|
||||
Reference in New Issue
Block a user