delegation-list: add DelegationList::empty()
Also, add 'noexcept' where applicable.
refs #4055
Change-Id: I3e0ae671541a6bb55079bf13990ba5ca15f312a5
diff --git a/tests/unit-tests/delegation-list.t.cpp b/tests/unit-tests/delegation-list.t.cpp
index b98c67a..7ae92ed 100644
--- a/tests/unit-tests/delegation-list.t.cpp
+++ b/tests/unit-tests/delegation-list.t.cpp
@@ -1,5 +1,5 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
+/*
* Copyright (c) 2013-2017 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
@@ -170,7 +170,9 @@
BOOST_AUTO_TEST_CASE(InsertSimple)
{
DelegationList dl;
+ BOOST_CHECK_EQUAL(dl.empty(), true);
dl.insert(2, "/A");
+ BOOST_CHECK_EQUAL(dl.empty(), false);
dl.insert(1, "/B");
BOOST_CHECK_EQUAL(dl.size(), 2);