Project
Loading...
Searching...
No Matches
testBitSet.cxx File Reference
#include <boost/test/unit_test.hpp>
#include <iostream>
#include "BitSet.h"
#include <vector>
#include <fmt/format.h>
#include <ctime>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   Test MCHRaw bitset
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 BOOST_AUTO_TEST_CASE (TestCount)
 
 BOOST_AUTO_TEST_CASE (TestAppend)
 
 BOOST_AUTO_TEST_CASE (TestPruneFirst)
 
 BOOST_AUTO_TEST_CASE (TestAny)
 
 BOOST_AUTO_TEST_CASE (TestNew)
 
 BOOST_AUTO_TEST_CASE (TestSet)
 
 BOOST_AUTO_TEST_CASE (TestGet)
 
 BOOST_AUTO_TEST_CASE (TestClear)
 
 BOOST_AUTO_TEST_CASE (TestString)
 
 BOOST_AUTO_TEST_CASE (TestFromString)
 
 BOOST_AUTO_TEST_CASE (TestRangeFromString)
 
 BOOST_AUTO_TEST_CASE (TestFromIntegers)
 
 BOOST_AUTO_TEST_CASE (TestRangeFromUint16)
 
 BOOST_AUTO_TEST_CASE (TestRangeFromUint32)
 
 BOOST_AUTO_TEST_CASE (TestRangeFromUint64)
 
 BOOST_AUTO_TEST_CASE (TestRangeFromIntegers)
 
 BOOST_AUTO_TEST_CASE (TestFromBytes)
 
 BOOST_AUTO_TEST_CASE (TestIsEqual)
 
 BOOST_AUTO_TEST_CASE (TestSub)
 
 BOOST_AUTO_TEST_CASE (TestUint64)
 
 BOOST_AUTO_TEST_CASE (TestGrow)
 
 BOOST_AUTO_TEST_CASE (TestUint16)
 
 BOOST_AUTO_TEST_CASE (TestUint32)
 
 BOOST_AUTO_TEST_CASE (TestLast)
 
 BOOST_AUTO_TEST_CASE (TestEmptyBitSet)
 
std::string bitNumberScale (int n, int nspaces, bool right2left)
 
 BOOST_AUTO_TEST_CASE (TestAppendUint32)
 
 BOOST_AUTO_TEST_CASE (TestAppendUint64)
 
 BOOST_AUTO_TEST_CASE (TestAppendUint64Bis)
 
 BOOST_AUTO_TEST_CASE (TestAppendUint8)
 
void compare (std::string_view s1, std::string_view s2)
 
 BOOST_AUTO_TEST_CASE (TestLongAppend)
 
 BOOST_AUTO_TEST_CASE (TestLoopAppend)
 
 BOOST_AUTO_TEST_CASE (TestLimitedCtor)
 
 BOOST_AUTO_TEST_CASE (TestCircularAppend)
 

Variables

uint64_t allones = 0x3FFFFFFFFFFFF
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 17 of file testBitSet.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 16 of file testBitSet.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHRaw bitset
Author
Laurent Aphecetche

Definition at line 15 of file testBitSet.cxx.

Function Documentation

◆ bitNumberScale()

std::string bitNumberScale ( int  n,
int  nspaces,
bool  right2left 
)

Definition at line 292 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [1/33]

BOOST_AUTO_TEST_CASE ( TestAny  )

Definition at line 68 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/33]

BOOST_AUTO_TEST_CASE ( TestAppend  )

Definition at line 45 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/33]

BOOST_AUTO_TEST_CASE ( TestAppendUint32  )

Definition at line 319 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/33]

BOOST_AUTO_TEST_CASE ( TestAppendUint64  )

Definition at line 335 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/33]

BOOST_AUTO_TEST_CASE ( TestAppendUint64Bis  )

Definition at line 351 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/33]

BOOST_AUTO_TEST_CASE ( TestAppendUint8  )

Definition at line 362 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/33]

BOOST_AUTO_TEST_CASE ( TestCircularAppend  )

Definition at line 458 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [8/33]

BOOST_AUTO_TEST_CASE ( TestClear  )

Definition at line 103 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [9/33]

BOOST_AUTO_TEST_CASE ( TestCount  )

Definition at line 35 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [10/33]

BOOST_AUTO_TEST_CASE ( TestEmptyBitSet  )

Definition at line 282 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [11/33]

BOOST_AUTO_TEST_CASE ( TestFromBytes  )

Definition at line 206 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [12/33]

BOOST_AUTO_TEST_CASE ( TestFromIntegers  )

Definition at line 141 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [13/33]

BOOST_AUTO_TEST_CASE ( TestFromString  )

Definition at line 121 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [14/33]

BOOST_AUTO_TEST_CASE ( TestGet  )

Definition at line 92 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [15/33]

BOOST_AUTO_TEST_CASE ( TestGrow  )

Definition at line 249 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [16/33]

BOOST_AUTO_TEST_CASE ( TestIsEqual  )

Definition at line 216 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [17/33]

BOOST_AUTO_TEST_CASE ( TestLast  )

Definition at line 275 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [18/33]

BOOST_AUTO_TEST_CASE ( TestLimitedCtor  )

Definition at line 450 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [19/33]

BOOST_AUTO_TEST_CASE ( TestLongAppend  )

Definition at line 414 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [20/33]

BOOST_AUTO_TEST_CASE ( TestLoopAppend  )

Definition at line 432 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [21/33]

BOOST_AUTO_TEST_CASE ( TestNew  )

Definition at line 76 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [22/33]

BOOST_AUTO_TEST_CASE ( TestPruneFirst  )

Definition at line 60 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [23/33]

BOOST_AUTO_TEST_CASE ( TestRangeFromIntegers  )

Definition at line 196 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [24/33]

BOOST_AUTO_TEST_CASE ( TestRangeFromString  )

Definition at line 129 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [25/33]

BOOST_AUTO_TEST_CASE ( TestRangeFromUint16  )

Definition at line 168 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [26/33]

BOOST_AUTO_TEST_CASE ( TestRangeFromUint32  )

Definition at line 177 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [27/33]

BOOST_AUTO_TEST_CASE ( TestRangeFromUint64  )

Definition at line 186 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [28/33]

BOOST_AUTO_TEST_CASE ( TestSet  )

Definition at line 81 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [29/33]

BOOST_AUTO_TEST_CASE ( TestString  )

Definition at line 112 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [30/33]

BOOST_AUTO_TEST_CASE ( TestSub  )

Definition at line 225 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [31/33]

BOOST_AUTO_TEST_CASE ( TestUint16  )

Definition at line 257 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [32/33]

BOOST_AUTO_TEST_CASE ( TestUint32  )

Definition at line 266 of file testBitSet.cxx.

◆ BOOST_AUTO_TEST_CASE() [33/33]

BOOST_AUTO_TEST_CASE ( TestUint64  )

Definition at line 234 of file testBitSet.cxx.

◆ compare()

void compare ( std::string_view  s1,
std::string_view  s2 
)

Definition at line 392 of file testBitSet.cxx.

Variable Documentation

◆ allones

uint64_t allones = 0x3FFFFFFFFFFFF

Definition at line 28 of file testBitSet.cxx.