blob: b7bdbb8aa014d7565b94d88c23911b3d73d7d11c [file] [log] [blame]
Junxiao Shi0fcb41e2014-01-24 10:29:43 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
7#include "table/cs.hpp"
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -08008
Junxiao Shi0fcb41e2014-01-24 10:29:43 -07009#include <boost/test/unit_test.hpp>
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080010
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080011namespace nfd {
Junxiao Shi0fcb41e2014-01-24 10:29:43 -070012
13BOOST_AUTO_TEST_SUITE(TableCs)
14
15BOOST_AUTO_TEST_CASE(FakeInsertFind)
16{
17 Cs cs;
18
Alexander Afanasyevc9765df2014-01-25 19:24:27 -080019 Data data;
Junxiao Shi0fcb41e2014-01-24 10:29:43 -070020 BOOST_CHECK_EQUAL(cs.insert(data), false);
21
22 Interest interest;
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080023 BOOST_CHECK_EQUAL(static_cast<bool>(cs.find(interest)), false);
Junxiao Shi0fcb41e2014-01-24 10:29:43 -070024}
25
26BOOST_AUTO_TEST_SUITE_END()
Alexander Afanasyevb927a3a2014-01-24 10:41:47 -080027
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080028} // namespace nfd