21#define BOOST_TEST_NO_MAIN
22#include <boost/test/unit_test.hpp>
32 std::vector<PCB_LAYER_ID> result;
34 for(
auto layer : range )
36 result.push_back( layer );
39 BOOST_CHECK_EQUAL_COLLECTIONS( result.begin(), result.end(),
expected.begin(),
expected.end() );
46 std::vector<PCB_LAYER_ID> result;
48 for(
auto layer : range )
50 result.push_back( layer );
53 BOOST_CHECK_EQUAL_COLLECTIONS( result.begin(), result.end(),
expected.begin(),
expected.end() );
60 std::vector<PCB_LAYER_ID> result;
62 for(
auto layer : range )
64 result.push_back( layer );
67 BOOST_CHECK_EQUAL_COLLECTIONS( result.begin(), result.end(),
expected.begin(),
expected.end() );
74 std::vector<PCB_LAYER_ID> result;
76 for(
auto layer : range )
78 result.push_back( layer );
81 BOOST_CHECK_EQUAL_COLLECTIONS( result.begin(), result.end(),
expected.begin(),
expected.end() );
88 std::vector<PCB_LAYER_ID> result;
90 for(
auto layer : range )
92 result.push_back( layer );
95 BOOST_CHECK_EQUAL_COLLECTIONS( result.begin(), result.end(),
expected.begin(),
expected.end() );
108 std::vector<PCB_LAYER_ID> result;
110 for(
auto layer : range )
112 result.push_back( layer );
115 BOOST_CHECK_EQUAL_COLLECTIONS( result.begin(), result.end(),
expected.begin(),
expected.end() );
130 std::vector<PCB_LAYER_ID> result;
131 for(
auto layer : range )
133 result.push_back( layer );
136 BOOST_CHECK_EQUAL_COLLECTIONS( result.begin(), result.end(),
expected.begin(),
expected.end() );
PCB_LAYER_ID
A quick note on layer IDs:
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(ForwardIterationTwoLayers)
VECTOR3I expected(15, 30, 45)