error unit tests

This commit is contained in:
Daniel Sipka 2015-04-27 10:37:11 +02:00
parent d5f44604dd
commit 83455577d0
7 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,3 @@
const auto error_eof_in_section_data = mstch::map{
{"hello", mstch::array{std::string{"a"}, std::string{"b"}}}
};

View File

@ -0,0 +1 @@
yay{{#hello}}{{.}}

View File

@ -0,0 +1 @@
yay

View File

@ -0,0 +1 @@
const auto error_eof_in_tag_data = mstch::map{{"hello", std::string{"world"}}};

View File

@ -0,0 +1 @@
{{hello{{hello}}{{hello

View File

@ -0,0 +1 @@
{{hello

View File

@ -32,6 +32,8 @@ MSTCH_TEST(empty_list)
MSTCH_TEST(empty_sections)
MSTCH_TEST(empty_string)
MSTCH_TEST(empty_template)
MSTCH_TEST(error_eof_in_section)
MSTCH_TEST(error_eof_in_tag)
MSTCH_TEST(error_not_found)
MSTCH_TEST(escaped)
MSTCH_TEST(falsy)