[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 84403b9 2/3: Augment unit test
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 84403b9 2/3: Augment unit test |
Date: |
Sun, 9 Sep 2018 14:55:09 -0400 (EDT) |
branch: master
commit 84403b9f44ad43b13c8512300294c908126f5aa8
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Augment unit test
---
report_table_test.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/report_table_test.cpp b/report_table_test.cpp
index 63f44eb..9b24a6d 100644
--- a/report_table_test.cpp
+++ b/report_table_test.cpp
@@ -555,6 +555,12 @@ void report_table_test::test_paginator()
BOOST_TEST_EQUAL(2, paginator(8, 2, 7).page_count());
BOOST_TEST_EQUAL(2, paginator(9, 2, 7).page_count());
+ std::cout << "Zero rows" << std::endl;
+ std::cout << paginate(0, 2, 7) << std::endl;
+ std::cout << "Last page: zero full groups and one partial" << std::endl;
+ std::cout << paginate(1, 2, 7) << std::endl;
+ std::cout << "Last page: two full groups and one partial" << std::endl;
+ std::cout << paginate(5, 2, 7) << std::endl;
std::cout << "Last page: one full group" << std::endl;
std::cout << paginate(6, 2, 7) << std::endl;
std::cout << "Last page: one full group and one partial" << std::endl;