Files
NLSR/tests/test-map.cpp
T
akmhoque fdbddb114e src: Renaming class to spell out them (Adl, Nhl, Npl, Npt, Npte)
Refs: #1534

Change-Id: If4a205e8ad2419505cc796027a5c863471ef5439
2014-05-02 23:40:42 -07:00

32 lines
543 B
C++

/**
* Copyright (C) 2014 Regents of the University of Memphis.
* See COPYING for copyright and distribution information.
*/
#include "route/map.hpp"
#include <boost/test/unit_test.hpp>
namespace nlsr {
namespace test {
BOOST_AUTO_TEST_SUITE(TestMap)
BOOST_AUTO_TEST_CASE(MapAddElementAndSize)
{
Map map1;
std::string router1 = "r1";
std::string router2 = "r2";
map1.addEntry(router1);
map1.addEntry(router2);
BOOST_CHECK_EQUAL(map1.getMapSize(), 2);
}
BOOST_AUTO_TEST_SUITE_END()
} //namespace test
} //namespace nlsr