tests: Adding unit tests.
The purpose of this commit is to start pushing unit test I am writing. I will add more unit tests in each patch Refs: #1496 Change-Id: Ic132adddfa06a95780712eba63966d3bab4743af
This commit is contained in:
1 parent
c8a10f762b
commit
eb582eb919
17 files changed
+727
No files matched your search
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Copyright (C) 2014 Regents of the University of Memphis.
|
||||
* See COPYING for copyright and distribution information.
|
||||
*/
|
||||
|
||||
#include "route/routing-table-entry.hpp"
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
namespace nlsr {
|
||||
|
||||
namespace test {
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(TestRoutingTableEntry)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(RoutingTableEntryDestination)
|
||||
{
|
||||
RoutingTableEntry rte1("router1");
|
||||
|
||||
BOOST_CHECK_EQUAL(rte1.getDestination(), "router1");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
} //namespace test
|
||||
} //namespace nlsr
|
||||
Reference in new issue
Block a user