blob: 9ae9d558a6de30d0022be1c979dcdc23d8ebaa90 [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 "sequencing-manager.hpp"
7#include <boost/test/unit_test.hpp>
8
9namespace nlsr {
10
11namespace test {
12
13BOOST_AUTO_TEST_SUITE(TestSequencingManager)
14
15BOOST_AUTO_TEST_CASE(SequencingManagerBasic)
16{
17 SequencingManager sm1(120, 121, 122);
18
19 SequencingManager sm2(sm1.getCombinedSeqNo());
20
21 BOOST_CHECK_EQUAL(sm2.getNameLsaSeq(), 120);
22
23 BOOST_CHECK_EQUAL(sm2.getAdjLsaSeq(), 121);
24
25 BOOST_CHECK_EQUAL(sm2.getCorLsaSeq(), 122);
26}
27
28BOOST_AUTO_TEST_SUITE_END()
29
30} //namespace test
31} //namespace nlsr