blob: ebbfb15013757e060f335f76dc29b9f0917780f0 [file] [log] [blame]
Ashlesh Gawandeeb582eb2014-05-01 14:25:20 -05001/**
2 * Copyright (C) 2014 Regents of the University of Memphis.
3 * See COPYING for copyright and distribution information.
4 */
5
6#include "route/map.hpp"
7#include <boost/test/unit_test.hpp>
8
9namespace nlsr {
10
11namespace test {
12
13BOOST_AUTO_TEST_SUITE(TestMap)
14
15BOOST_AUTO_TEST_CASE(MapAddElementAndSize)
16{
17 Map map1;
18
19 std::string router1 = "r1";
20 std::string router2 = "r2";
21
22 map1.addElement(router1);
23 map1.addElement(router2);
24
25 BOOST_CHECK_EQUAL(map1.getMapSize(), 2);
26}
27
28BOOST_AUTO_TEST_SUITE_END()
29
30} //namespace test
31} //namespace nlsr