19 #include <boost/test/unit_test.hpp>
23 namespace architecture {
25 BOOST_AUTO_TEST_SUITE(architecture)
51 BOOST_CHECK_EQUAL(pin1.
getElementPtr(),
static_cast<void*
>(0));
52 BOOST_CHECK_EQUAL(pin1.
getName(), name);
53 BOOST_CHECK_EQUAL(pin1.
getFlags(), flags);
54 BOOST_CHECK(pin1.
isInput() ==
false);
55 BOOST_CHECK(pin1.
isOutput() ==
true);
57 BOOST_CHECK_EQUAL(pin2.getElementPtr(),
static_cast<void*
>(0));
58 BOOST_CHECK_EQUAL(pin2.getName(),
"");
60 BOOST_CHECK(pin2.isInput() ==
false);
61 BOOST_CHECK(pin2.isOutput() ==
false);
64 BOOST_AUTO_TEST_SUITE_END()
bool isOutput(void) const
Returns true if this pin is a primitive output.
BOOST_AUTO_TEST_CASE(ArcUnitTest)
Unit test for the Arc class.
PinFlags getFlags(void) const
Returns the pin direction flags.
const string & getName(void) const
Returns the pin name.
bool isInput(void) const
Returns true if this pin is a primitive input.
const PrimitiveElement * getElementPtr(void) const
Returns a pointer to the primitive element that owns this pin.
Encapsulation of pin attribute flags in an unsigned 16-bit integer.
Encapsulation of a primitive element pin's name, flags, and element pointer. Primitive element pins ...
Header for the PrimitiveElementPin class.