File indexing completed on 2023-03-17 11:01:32
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include <boost/test/unit_test.hpp>
0015 #include <boost/test/test_tools.hpp>
0016
0017
0018 #include "Fireworks/Core/interface/FWModelId.h"
0019
0020
0021
0022
0023 BOOST_AUTO_TEST_CASE(fwmodelid) {
0024 FWModelId one(0, 1);
0025 FWModelId one2(0, 1);
0026
0027 BOOST_CHECK(not(one < one2));
0028 BOOST_CHECK(not(one2 < one));
0029
0030 FWModelId two(0, 2);
0031 BOOST_CHECK(one < two);
0032 BOOST_CHECK(not(two < one));
0033
0034 FWModelId otherOne(reinterpret_cast<const FWEventItem*>(1), 1);
0035 BOOST_CHECK(one < otherOne);
0036 BOOST_CHECK(not(otherOne < one));
0037 BOOST_CHECK(two < otherOne);
0038 BOOST_CHECK(not(otherOne < two));
0039 }