diff options
Diffstat (limited to 'unittest.cpp')
-rw-r--r-- | unittest.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/unittest.cpp b/unittest.cpp new file mode 100644 index 0000000..0cea0c7 --- /dev/null +++ b/unittest.cpp @@ -0,0 +1,27 @@ +#include "routing.h" +#include <functional> +#include "utility.h" + +using namespace flask; +using namespace flask::black_magic; + +template <int N> struct T{}; + +int main() +{ + try + { + throw T<is_int("1<int>22",0)>(); + } + catch(T<0>) + { + } + + try + { + throw T<is_int("1<int>22",1)>(); + } + catch(T<1>) + { + } +} |