- Converted history reports to use ViewText.
- Fixed unit test.
This commit is contained in:
Paul Beckingham 2011-05-11 00:20:35 -04:00
parent fcb711d673
commit ec7d9ed765
5 changed files with 103 additions and 144 deletions

View file

@ -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 ();