Skip to content

Commit

Permalink
Tests for getting/setting TextPlot dimensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
zsiciarz committed Aug 27, 2014
1 parent 8d169bb commit 3a5e9eb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/tools/TextPlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,19 @@ SUITE(TextPlot)
plot.setTitle("My plot");
CHECK_EQUAL(plot.getTitle(), "My plot");
}

TEST(DefaultSize)
{
Aquila::TextPlot plot;
CHECK_EQUAL(plot.getWidth(), 64);
CHECK_EQUAL(plot.getHeight(), 16);
}

TEST(CustomSize)
{
Aquila::TextPlot plot;
plot.setSize(80, 12);
CHECK_EQUAL(plot.getWidth(), 80);
CHECK_EQUAL(plot.getHeight(), 12);
}
}

0 comments on commit 3a5e9eb

Please sign in to comment.