20#include <boost/test/unit_test.hpp>
38 std::set<size_t> hashes;
39 hashes.insert( a0.
Hash() );
40 hashes.insert( b0.
Hash() );
41 hashes.insert( c0.
Hash() );
42 hashes.insert( d0.
Hash() );
43 BOOST_CHECK_EQUAL( hashes.size(), 4 );
48 BOOST_CHECK_EQUAL( a.
Hash(), a0.
Hash() );
51 BOOST_CHECK_EQUAL( b.
Hash(), b0.
Hash() );
54 BOOST_CHECK_EQUAL( c.
Hash(), c0.
Hash() );
57 BOOST_CHECK_EQUAL( d.
Hash(), d0.
Hash() );
77 BOOST_CHECK( path1.
EndsWith( path2 ) ==
true );
78 BOOST_CHECK( path2.
EndsWith( path1 ) ==
false );
87 wxString str_a( wxS(
"AABBCCDD" ) );
88 wxString str_b( wxS(
"00000012" ) );
99 BOOST_CHECK(
KIID( str_a ).AsLegacyTimestamp() == ts_a );
100 BOOST_CHECK(
KIID( str_b ).AsLegacyTimestamp() == ts_b );
102 BOOST_CHECK(
KIID( str_a ).AsLegacyTimestampString() == str_a );
103 BOOST_CHECK(
KIID( str_b ).AsLegacyTimestampString() == str_b );
bool EndsWith(const KIID_PATH &aPath) const
Test if aPath from the last path towards the first path.
static void SeedGenerator(unsigned int aSeed)
Re-initialize the UUID generator with a given seed (for testing or QA purposes)
wxString AsLegacyTimestampString() const
timestamp_t AsLegacyTimestamp() const
uint32_t timestamp_t
timestamp_t is our type to represent unique IDs for all kinds of elements; historically simply the ti...
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(Seeding)