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

Function test_for_expected

tests/string_formatter_test.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35template<typename ...Args>
36void test_for_expected( const std::string &expected, const char *const format, Args &&... args )
37{
38 CAPTURE( format );
39
40 const std::string result = throwing_string_format( format, std::forward<Args>( args )... );
41 CHECK( result == expected );
42}
43
44template<typename ...Args>
45void test_for_error( const char *const format, Args &&... args )

Callers 2

test_lvaluesFunction · 0.85

Calls 1

throwing_string_formatFunction · 0.85

Tested by

no test coverage detected