| 43 | |
| 44 | template<typename ...Args> |
| 45 | void test_for_error( const char *const format, Args &&... args ) |
| 46 | { |
| 47 | CAPTURE( format ); |
| 48 | |
| 49 | const std::string result = throwing_string_format( format, std::forward<Args>( args )... ); |
| 50 | CAPTURE( result ); |
| 51 | } |
| 52 | // Test whether raw printf and string_formatter return the same string (using |
| 53 | // old_pattern in both). Test whether the new pattern (if any) yields the same |
| 54 | // output via string_formatter (not used on raw printf). |
no test coverage detected