torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SitesUnitTest.cpp
Go to the documentation of this file.
1 // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2 // $HeadURL$
3 // $Id$
4 
5 // This program is free software: you can redistribute it and/or modify it under the terms of the
6 // GNU General Public License as published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11 // the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program. If
14 // not, see <http://www.gnu.org/licenses/>.
15 
16 /// \file
17 /// \brief Unit test for the Sites class.
18 
19 #include <boost/test/unit_test.hpp>
22 
23 
24 #include <boost/bimap.hpp>
25 #include <boost/bimap/multiset_of.hpp>
26 
27 
28 namespace torc {
29 namespace architecture {
30 
31 BOOST_AUTO_TEST_SUITE(regression)
32 BOOST_AUTO_TEST_SUITE(architecture)
33 
34 /// \brief Unit test for the Sites class.
35 BOOST_AUTO_TEST_CASE(SitesUnitTest) {
36 /*
37  typedef boost::bimap< boost::bimaps::multiset_of<std::string>, boost::bimaps::multiset_of<std::string> > bm_type;
38  bm_type bm;
39 
40  bm.insert( bm_type::value_type( "SLICEL", "SLICEL" ) );
41  bm.insert( bm_type::value_type( "SLICEL", "SLICEM" ) );
42  bm.insert( bm_type::value_type( "SLICEM", "SLICEM" ) );
43 
44  bm.insert( bm_type::value_type( "BUFG", "BUFGCTRL" ) );
45  bm.insert( bm_type::value_type( "BUFGCTRL", "BUFGCTRL" ) );
46 
47  bm.insert( bm_type::value_type( "IOBS", "IOBS" ) );
48  bm.insert( bm_type::value_type( "IOB", "IOBS" ) );
49  bm.insert( bm_type::value_type( "IOB", "IOBM" ) );
50  bm.insert( bm_type::value_type( "IOBM", "IOBM" ) );
51 
52  bm.upper_bound("IOBS");
53 
54  BOOST_CHECK(bm.size() == 9);
55  assert( bm.size() == 9 );
56 */
57  /// \todo Write a unit test for torc::architecture::Sites.
58  BOOST_REQUIRE(false);
59 
60 }
61 
62 BOOST_AUTO_TEST_SUITE_END()
63 BOOST_AUTO_TEST_SUITE_END()
64 
65 } // namespace architecture
66 } // namespace torc
BOOST_AUTO_TEST_CASE(ArcUnitTest)
Unit test for the Arc class.
Definition: ArcUnitTest.cpp:29
Header for the Sites class.
Header for the DDB class.