openMSX
Functions
IterableBitSet_test.cc File Reference
#include "catch.hpp"
#include "IterableBitSet.hh"
#include "ranges.hh"
#include <iostream>
#include <vector>
Include dependency graph for IterableBitSet_test.cc:

Go to the source code of this file.

Functions

template<size_t N>
void expect (const IterableBitSet< N > &s, const std::vector< size_t > &expected)
 
template<size_t N>
void test (const IterableBitSet< N > &s, std::initializer_list< size_t > list)
 
template<size_t N>
void test (std::initializer_list< size_t > list)
 
 TEST_CASE ("IterableBitSet")
 

Function Documentation

◆ expect()

template<size_t N>
void expect ( const IterableBitSet< N > &  s,
const std::vector< size_t > &  expected 
)

Definition at line 8 of file IterableBitSet_test.cc.

References CHECK(), and IterableBitSet< N >::foreachSetBit().

Referenced by test(), and TEST_CASE().

◆ test() [1/2]

template<size_t N>
void test ( const IterableBitSet< N > &  s,
std::initializer_list< size_t >  list 
)

Definition at line 19 of file IterableBitSet_test.cc.

References expect(), ranges::sort(), and test().

Referenced by test(), test(), TEST_CASE(), TEST_CASE(), and TEST_CASE().

◆ test() [2/2]

template<size_t N>
void test ( std::initializer_list< size_t >  list)

◆ TEST_CASE()

TEST_CASE ( "IterableBitSet"  )