onqtam | b43aa04 | 2017-03-13 19:04:08 +0200 | [diff] [blame] | 1 | #define DOCTEST_CONFIG_IMPLEMENTATION_IN_DLL |
2 | #include "doctest.h" | ||||
3 | |||||
4 | #include <cstdio> | ||||
5 | |||||
6 | TEST_CASE("plugin") { | ||||
7 | printf("I am a test from the plugin!\n"); | ||||
8 | } | ||||
onqtam | 05bcc37 | 2017-03-17 02:10:38 +0200 | [diff] [blame] | 9 | |
10 | // set an exception translator for char | ||||
11 | REGISTER_EXCEPTION_TRANSLATOR(char& e) { | ||||
12 | return doctest::String("char: ") + doctest::toString(e); | ||||
13 | } |