openMSX
Classes | Functions
view_test.cc File Reference
#include "catch.hpp"
#include "view.hh"
#include "hash_map.hh"
#include "ranges.hh"
#include "stl.hh"
#include "xrange.hh"
#include "StringOp.hh"
#include <algorithm>
#include <list>
#include <map>
#include <string>
#include <tuple>
#include <vector>
Include dependency graph for view_test.cc:

Go to the source code of this file.

Classes

struct  F
 

Functions

 TEST_CASE ("view::drop random-access-range")
 
 TEST_CASE ("view::drop non-random-access-range")
 
 TEST_CASE ("view::drop capture")
 
 TEST_CASE ("view::drop_back random-access-range")
 
 TEST_CASE ("view::drop_back non-random-access-range")
 
 TEST_CASE ("view::reverse")
 
 TEST_CASE ("view::transform")
 
 TEST_CASE ("view::keys, view::values")
 
 TEST_CASE ("view::filter")
 
 TEST_CASE ("view::take")
 
template<typename In1 , typename In2 , typename Expected >
void test_zip (const In1 &in1, const In2 &in2, const Expected &expected)
 
template<typename In1 , typename In2 , typename In3 , typename Expected >
void test_zip (const In1 &in1, const In2 &in2, const In3 &in3, const Expected &expected)
 
 TEST_CASE ("view::zip")
 
template<typename In1 , typename In2 , typename Expected >
void test_zip_equal (const In1 &in1, const In2 &in2, const Expected &expected)
 
template<typename In1 , typename In2 , typename In3 , typename Expected >
void test_zip_equal (const In1 &in1, const In2 &in2, const In3 &in3, const Expected &expected)
 
 TEST_CASE ("view::zip_equal")
 

Function Documentation

◆ TEST_CASE() [1/12]

TEST_CASE ( "view::drop capture"  )

Definition at line 68 of file view_test.cc.

References CHECK(), and view::drop().

◆ TEST_CASE() [2/12]

TEST_CASE ( "view::drop non-random-access-range"  )

Definition at line 48 of file view_test.cc.

References CHECK(), view::drop(), and to_vector().

◆ TEST_CASE() [3/12]

TEST_CASE ( "view::drop random-access-range"  )

Definition at line 25 of file view_test.cc.

References CHECK(), view::drop(), and to_vector().

◆ TEST_CASE() [4/12]

TEST_CASE ( "view::drop_back non-random-access-range"  )

Definition at line 108 of file view_test.cc.

References CHECK(), view::drop_back(), and to_vector().

◆ TEST_CASE() [5/12]

TEST_CASE ( "view::drop_back random-access-range"  )

Definition at line 85 of file view_test.cc.

References CHECK(), view::drop_back(), and to_vector().

◆ TEST_CASE() [6/12]

TEST_CASE ( "view::filter"  )

Definition at line 249 of file view_test.cc.

References CHECK(), view::filter(), and F::isOdd().

◆ TEST_CASE() [7/12]

TEST_CASE ( "view::keys   ,
view::values"   
)

Definition at line 211 of file view_test.cc.

References view::keys(), and view::values().

◆ TEST_CASE() [8/12]

TEST_CASE ( "view::reverse"  )

Definition at line 129 of file view_test.cc.

References CHECK(), and view::reverse().

◆ TEST_CASE() [9/12]

TEST_CASE ( "view::take"  )

Definition at line 287 of file view_test.cc.

References CHECK(), and view::take().

◆ TEST_CASE() [10/12]

TEST_CASE ( "view::transform"  )

Definition at line 147 of file view_test.cc.

References CHECK(), to_vector(), and view::transform().

◆ TEST_CASE() [11/12]

TEST_CASE ( "view::zip"  )

Definition at line 340 of file view_test.cc.

References CHECK(), l4, test_zip(), v4, and view::zip().

◆ TEST_CASE() [12/12]

TEST_CASE ( "view::zip_equal"  )

Definition at line 385 of file view_test.cc.

References CHECK(), test_zip_equal(), and view::zip_equal().

◆ test_zip() [1/2]

template<typename In1 , typename In2 , typename Expected >
void test_zip ( const In1 &  in1,
const In2 &  in2,
const Expected &  expected 
)

Definition at line 321 of file view_test.cc.

References CHECK(), t, and view::zip().

Referenced by TEST_CASE().

◆ test_zip() [2/2]

template<typename In1 , typename In2 , typename In3 , typename Expected >
void test_zip ( const In1 &  in1,
const In2 &  in2,
const In3 &  in3,
const Expected &  expected 
)

Definition at line 331 of file view_test.cc.

References CHECK(), t, and view::zip().

◆ test_zip_equal() [1/2]

template<typename In1 , typename In2 , typename Expected >
void test_zip_equal ( const In1 &  in1,
const In2 &  in2,
const Expected &  expected 
)

Definition at line 366 of file view_test.cc.

References CHECK(), t, and view::zip_equal().

Referenced by TEST_CASE().

◆ test_zip_equal() [2/2]

template<typename In1 , typename In2 , typename In3 , typename Expected >
void test_zip_equal ( const In1 &  in1,
const In2 &  in2,
const In3 &  in3,
const Expected &  expected 
)

Definition at line 376 of file view_test.cc.

References CHECK(), t, and view::zip_equal().