19 #include <boost/test/unit_test.hpp>
23 namespace architecture {
25 BOOST_AUTO_TEST_SUITE(architecture)
42 BOOST_CHECK_EQUAL(pin1.
getName(), name);
43 BOOST_CHECK_EQUAL(pin1.
getFlags(), flags);
44 BOOST_CHECK(pin1.
isInput() ==
false);
45 BOOST_CHECK(pin1.
isOutput() ==
true);
47 BOOST_CHECK_EQUAL(pin2.getName(),
"");
49 BOOST_CHECK(pin2.isInput() ==
false);
50 BOOST_CHECK(pin2.isOutput() ==
false);
53 BOOST_AUTO_TEST_SUITE_END()
bool isOutput(void) const
Returns true if this pin is a primitive output.
PinFlags getFlags(void) const
Returns the pin direction flags.
BOOST_AUTO_TEST_CASE(ArcUnitTest)
Unit test for the Arc class.
bool isInput(void) const
Returns true if this pin is a primitive input.
const string & getName(void) const
Returns the pin name.
Header for the PrimitivePin class.
Encapsulation of pin attribute flags in an unsigned 16-bit integer.
Encapsulation of a primitive pin's name and flags. Primitive pins are logic site inputs or outputs...