openMSX
|
#include "catch.hpp"
#include "IterableBitSet.hh"
#include "ranges.hh"
#include <iostream>
#include <vector>
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") | |
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().
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().
void test | ( | std::initializer_list< size_t > | list | ) |
Definition at line 37 of file IterableBitSet_test.cc.
References IterableBitSet< N >::setPosN(), IterableBitSet< N >::setRange(), and test().
TEST_CASE | ( | "IterableBitSet" | ) |
Definition at line 57 of file IterableBitSet_test.cc.
References CHECK(), IterableBitSet< N >::empty(), expect(), and IterableBitSet< N >::set().