| 20 | } |
| 21 | |
| 22 | void require_throws(const std::function<void()> & fn, const std::string & label) { |
| 23 | bool threw = false; |
| 24 | try { |
| 25 | fn(); |
| 26 | } catch (const std::runtime_error &) { |
| 27 | threw = true; |
| 28 | } |
| 29 | engine::test::require(threw, label + " did not throw"); |
| 30 | } |
| 31 | |
| 32 | void test_formats_srt_timecodes_and_text() { |
| 33 | engine::text::SubtitleFormatOptions options; |
no test coverage detected