Files
NFD/tests/table/cs.cpp
T
Alexander Afanasyev c9765dffb6 cs: Update interface
Change-Id: I9b637c21ae15e784317568affdc530c21ec32e9a
2014-01-25 23:05:50 -08:00

29 lines
547 B
C++

/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (C) 2014 Named Data Networking Project
* See COPYING for copyright and distribution information.
*/
#include "table/cs.hpp"
#include <boost/test/unit_test.hpp>
namespace ndn {
BOOST_AUTO_TEST_SUITE(TableCs)
BOOST_AUTO_TEST_CASE(FakeInsertFind)
{
Cs cs;
Data data;
BOOST_CHECK_EQUAL(cs.insert(data), false);
Interest interest;
BOOST_CHECK_EQUAL(static_cast<bool>(cs.find(interest)), false);
}
BOOST_AUTO_TEST_SUITE_END()
} // namespace ndn