fwmodelid

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
// -*- C++ -*-
//
// Package:     Core
// Class  :     unittest_fwmodelid
//
// Implementation:
//     <Notes on implementation>
//
// Original Author:  Chris Jones
//         Created:  Fri Jan 18 10:19:07 EST 2008
//

// system include files
#include <boost/test/unit_test.hpp>
#include <boost/test/test_tools.hpp>

// user include files
#include "Fireworks/Core/interface/FWModelId.h"

//
// constants, enums and typedefs
//
BOOST_AUTO_TEST_CASE(fwmodelid) {
  FWModelId one(0, 1);
  FWModelId one2(0, 1);

  BOOST_CHECK(not(one < one2));
  BOOST_CHECK(not(one2 < one));

  FWModelId two(0, 2);
  BOOST_CHECK(one < two);
  BOOST_CHECK(not(two < one));

  FWModelId otherOne(reinterpret_cast<const FWEventItem*>(1), 1);
  BOOST_CHECK(one < otherOne);
  BOOST_CHECK(not(otherOne < one));
  BOOST_CHECK(two < otherOne);
  BOOST_CHECK(not(otherOne < two));
}