MCPcopy Create free account
hub / github.com/CleverRaven/Cataclysm-DDA / check_equal

Function check_equal

tests/fold_string_test.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template<class IterResult, class IterExpect>
11static void check_equal( IterResult beg_res, IterResult end_res,
12 IterExpect beg_exp, IterExpect end_exp )
13{
14 CHECK( std::distance( beg_res, end_res ) == std::distance( beg_exp, end_exp ) );
15 IterResult result = beg_res;
16 IterExpect expect = beg_exp;
17 for( ; result != end_res && expect != end_exp; ++result, ++expect ) {
18 CHECK( *result == *expect );
19 }
20}
21
22TEST_CASE( "fold-string" )
23{

Callers 1

Calls 1

distanceFunction · 0.85

Tested by

no test coverage detected