Files
NFD/tests/core/time.cpp
T
Junxiao Shi 61c5ef3830 core: time::Duration, time:Point, time::now
refs #1148

Change-Id: I19c3d2f9b638797a6a36ce41a98be4463b4b7a2d
2014-01-25 18:31:02 -08:00

25 lines
468 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 "core/time.hpp"
#include <boost/test/unit_test.hpp>
namespace ndn {
BOOST_AUTO_TEST_SUITE(CoreTime)
BOOST_AUTO_TEST_CASE(Now)
{
time::Point p1 = time::now();
time::Point p2 = time::now();
BOOST_CHECK_LE(p1, p2);
}
BOOST_AUTO_TEST_SUITE_END()
} // namespace ndn