forked from organicmaps/organicmaps
[tests] updated tests not to fail on arm builds
This commit is contained in:
parent
ccac3992fb
commit
7a3b367e59
1 changed files with 11 additions and 10 deletions
|
@ -111,6 +111,7 @@ struct MaxValueCalc
|
|||
} // unnamed namespace
|
||||
|
||||
#define ZENC bits::ZigZagEncode
|
||||
#define MKSC(x) static_cast<signed char>(x)
|
||||
|
||||
UNIT_TEST(TrieBuilder_WriteNode_Smoke)
|
||||
{
|
||||
|
@ -133,24 +134,24 @@ UNIT_TEST(TrieBuilder_WriteNode_Smoke)
|
|||
3, // Number of values
|
||||
'1', '2', '3', // Values
|
||||
BOOST_BINARY(10000001), // Child 1: header: [+leaf] [-supershort] [2 symbols]
|
||||
static_cast<uint8_t>(ZENC('1')), static_cast<uint8_t>(ZENC('A' - '1')), // Child 1: edge
|
||||
static_cast<uint8_t>(ZENC(MKSC('1'))), static_cast<uint8_t>(ZENC(MKSC('A') - MKSC('1'))), // Child 1: edge
|
||||
'i', '1', // Child 1: intermediate data
|
||||
1, // Child 1: size
|
||||
static_cast<uint8_t>(64 | ZENC('B' - '1')), // Child 2: header: [-leaf] [+supershort]
|
||||
static_cast<uint8_t>(64 | ZENC(MKSC('B') - MKSC('1'))), // Child 2: header: [-leaf] [+supershort]
|
||||
'i', 'i', '2', // Child 2: intermediate data
|
||||
2, // Child 2: size
|
||||
BOOST_BINARY(00000001), // Child 3: header: [-leaf] [-supershort] [2 symbols]
|
||||
static_cast<uint8_t>(ZENC('z' - 'B')), 0, // Child 3: edge
|
||||
static_cast<uint8_t>(ZENC(MKSC('z') - MKSC('B'))), 0, // Child 3: edge
|
||||
3, // Child 3: size
|
||||
BOOST_BINARY(10111111), // Child 4: header: [+leaf] [-supershort] [>= 63 symbols]
|
||||
69, // Child 4: edgeSize - 1
|
||||
static_cast<uint8_t>(ZENC('a' - 'z')), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC('a' - 'j')), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC('a' - 'j')), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC('a' - 'j')), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC('a' - 'j')), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC('a' - 'j')), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC('a' - 'j')), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC(MKSC('a') - MKSC('z'))), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC(MKSC('a') - MKSC('j'))), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC(MKSC('a') - MKSC('j'))), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC(MKSC('a') - MKSC('j'))), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC(MKSC('a') - MKSC('j'))), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC(MKSC('a') - MKSC('j'))), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
static_cast<uint8_t>(ZENC(MKSC('a') - MKSC('j'))), 2,2,2,2,2,2,2,2,2, // Child 4: edge
|
||||
'i', '4', // Child 4: intermediate data
|
||||
4, // Child 4: size
|
||||
static_cast<uint8_t>(BOOST_BINARY(11000000) | ZENC(0)), // Child 5: header: [+leaf] [+supershort]
|
||||
|
|
Loading…
Add table
Reference in a new issue