Junxiao Shi | 61c5ef3 | 2014-01-24 20:59:30 -0700 | [diff] [blame] | 1 | /* -*- 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 "core/time.hpp" |
| 8 | |
| 9 | #include <boost/test/unit_test.hpp> |
| 10 | |
| 11 | namespace ndn { |
| 12 | |
| 13 | BOOST_AUTO_TEST_SUITE(CoreTime) |
| 14 | |
| 15 | BOOST_AUTO_TEST_CASE(Now) |
| 16 | { |
| 17 | time::Point p1 = time::now(); |
| 18 | time::Point p2 = time::now(); |
| 19 | BOOST_CHECK_LE(p1, p2); |
| 20 | } |
| 21 | |
| 22 | BOOST_AUTO_TEST_SUITE_END() |
| 23 | |
| 24 | } // namespace ndn |