Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Utilities
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
4
#include "
art/Utilities/ScheduleID.h
"
5
6
BOOST_AUTO_TEST_SUITE(ScheduleID_t)
7
8
BOOST_AUTO_TEST_CASE
(construct)
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
17
BOOST_AUTO_TEST_CASE
(
compare
)
18
{
19
BOOST_TEST(
art::ScheduleID
(57) ==
art::ScheduleID
(57));
20
BOOST_TEST(
art::ScheduleID
(57) !=
art::ScheduleID
(58));
21
BOOST_TEST(
art::ScheduleID::first
() <
art::ScheduleID::last
());
22
BOOST_TEST(!(
art::ScheduleID::last
() <
art::ScheduleID::first
()));
23
BOOST_TEST(
art::ScheduleID::first
() <=
art::ScheduleID::last
());
24
BOOST_TEST(
art::ScheduleID::first
() <=
art::ScheduleID::first
());
25
BOOST_TEST(!(
art::ScheduleID::last
() <=
art::ScheduleID::first
()));
26
BOOST_TEST(
art::ScheduleID::last
() >
art::ScheduleID::first
());
27
BOOST_TEST(!(
art::ScheduleID::first
() >
art::ScheduleID::last
()));
28
BOOST_TEST(
art::ScheduleID::last
() >=
art::ScheduleID::first
());
29
BOOST_TEST(
art::ScheduleID::last
() >=
art::ScheduleID::last
());
30
BOOST_TEST(!(
art::ScheduleID::first
() >=
art::ScheduleID::last
()));
31
}
32
33
BOOST_AUTO_TEST_CASE
(
id
)
34
{
35
art::ScheduleID
sID{61};
36
BOOST_TEST(sID.id() == 61);
37
}
38
39
BOOST_AUTO_TEST_SUITE_END()
compare
int compare(unsigned *r, sha1::digest_t const &d)
Definition:
sha1_test_2.cc:60
art::ScheduleID::first
static constexpr ScheduleID first()
Definition:
ScheduleID.h:50
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(construct)
Definition:
ScheduleID_t.cc:8
art::ScheduleID
Definition:
ScheduleID.h:17
art::ScheduleID::last
static constexpr ScheduleID last()
Definition:
ScheduleID.h:55
ScheduleID.h
Generated by
1.8.11