| 10 | // Same as @ref string_format, but does not swallow errors and throws them instead. |
| 11 | template<typename ...Args> |
| 12 | std::string throwing_string_format( const char *const format, Args &&...args ) |
| 13 | { |
| 14 | cata::string_formatter formatter( format ); |
| 15 | formatter.parse( std::forward<Args>( args )... ); |
| 16 | return formatter.get_output(); |
| 17 | } |
| 18 | |
| 19 | template<typename ...Args> |
| 20 | void importet_test( const int serial, const char *const expected, const char *const format, |
no test coverage detected