more coverage

This commit is contained in:
Hans Dembinski
2018-08-13 20:58:06 +02:00
parent 7529e9bb91
commit 7832cca461
4 changed files with 19 additions and 14 deletions

View File

@@ -15,11 +15,15 @@
int main() {
using namespace boost::histogram;
// ctor
// ctor and reset
{
array_storage<unsigned> a;
BOOST_TEST_EQ(a.size(), 0);
a.reset(1);
BOOST_TEST_EQ(a.size(), 1);
a.increase(0);
BOOST_TEST_EQ(a[0], 1);
a.reset(1);
BOOST_TEST_EQ(a.size(), 1u);
BOOST_TEST_EQ(a[0], 0);
}