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

Function mingw_test

tests/string_formatter_test.cpp:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94template<typename T>
95void mingw_test( const char *const old_pattern, const char *const new_pattern, const T &value )
96{
97 CAPTURE( old_pattern );
98 CAPTURE( new_pattern );
99 std::string original_result = cata::string_formatter::raw_string_format( old_pattern, value );
100 std::string new_result = throwing_string_format( new_pattern, value );
101 CHECK( original_result == new_result );
102}
103
104TEST_CASE( "string_formatter" )
105{

Callers 1

Calls 1

throwing_string_formatFunction · 0.85

Tested by

no test coverage detected