21#define BOOST_TEST_NO_MAIN
22#include <boost/test/unit_test.hpp>
27#define PCB_LAYER_COUNT PCB_LAYER_ID_COUNT
94 LSET shortSet( base );
111 LSEQ sequence = set.Seq();
123 std::string hexString = set.
FmtHex();
124 std::string expectedHexString =
"00000000_00000000_00000000_00000051";
128 std::string binString = set.FmtBin();
129 std::string expectedBinString =
"0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|"
130 "0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0000_0000|0101_0001";
144 set.FlipStandardLayers( 4 );
150 extractedLayer = set.ExtractLayer();
152 set.FlipStandardLayers();
153 extractedLayer = set.ExtractLayer();
170 if( seq1.size() != seq2.size() )
172 for(
size_t i = 0; i < seq1.size(); ++i )
174 if( seq1[i] != seq2[i] )
BASE_SET & set(size_t pos)
std::string FmtHex() const
Return a hex string showing contents of this set.
LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.
LSET is a set of PCB_LAYER_IDs.
bool ContainsAll(const LSET &aLayers) const
See if this layer set contains all layers in another set.
LSEQ Seq(const LSEQ &aSequence) const
Return an LSEQ from the union of this LSET and a desired sequence.
static const LSET & InternalCuMask()
Return a complete set of internal copper layers which is all Cu layers except F_Cu and B_Cu.
bool Contains(PCB_LAYER_ID aLayer) const
See if the layer set contains a PCB layer.
BOOST_AUTO_TEST_CASE(LSETConstructorEmpty)
bool compareLSEQ(const LSEQ &seq1, const LSEQ &seq2)
PCB_LAYER_ID
A quick note on layer IDs:
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_SUITE_END()
VECTOR3I expected(15, 30, 45)
wxString result
Test unit parsing edge cases and error handling.