ScheduleID_t.cc
Go to the documentation of this file.
1 #define BOOST_TEST_MODULE (ScheduleID_t)
2 #include "boost/test/unit_test.hpp"
3 
5 
6 BOOST_AUTO_TEST_SUITE(ScheduleID_t)
7 
9 {
10  BOOST_CHECK_NO_THROW(art::ScheduleID(0));
11  BOOST_CHECK_NO_THROW(art::ScheduleID(1));
12  BOOST_TEST(!art::ScheduleID().isValid());
13  BOOST_TEST(art::ScheduleID::first().isValid());
14  BOOST_TEST(art::ScheduleID::last().isValid());
15 }
16 
18 {
19  BOOST_TEST(art::ScheduleID(57) == art::ScheduleID(57));
20  BOOST_TEST(art::ScheduleID(57) != art::ScheduleID(58));
22  BOOST_TEST(!(art::ScheduleID::last() < art::ScheduleID::first()));
25  BOOST_TEST(!(art::ScheduleID::last() <= art::ScheduleID::first()));
27  BOOST_TEST(!(art::ScheduleID::first() > art::ScheduleID::last()));
30  BOOST_TEST(!(art::ScheduleID::first() >= art::ScheduleID::last()));
31 }
32 
34 {
35  art::ScheduleID sID{61};
36  BOOST_TEST(sID.id() == 61);
37 }
38 
39 BOOST_AUTO_TEST_SUITE_END()
int compare(unsigned *r, sha1::digest_t const &d)
Definition: sha1_test_2.cc:60
static constexpr ScheduleID first()
Definition: ScheduleID.h:50
BOOST_AUTO_TEST_CASE(construct)
Definition: ScheduleID_t.cc:8
static constexpr ScheduleID last()
Definition: ScheduleID.h:55