error unit tests
This commit is contained in:
parent
d5f44604dd
commit
83455577d0
3
test/data/error_eof_in_section.hpp
Normal file
3
test/data/error_eof_in_section.hpp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
const auto error_eof_in_section_data = mstch::map{
|
||||||
|
{"hello", mstch::array{std::string{"a"}, std::string{"b"}}}
|
||||||
|
};
|
1
test/data/error_eof_in_section.mustache
Normal file
1
test/data/error_eof_in_section.mustache
Normal file
@ -0,0 +1 @@
|
|||||||
|
yay{{#hello}}{{.}}
|
1
test/data/error_eof_in_section.txt
Normal file
1
test/data/error_eof_in_section.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
yay
|
1
test/data/error_eof_in_tag.hpp
Normal file
1
test/data/error_eof_in_tag.hpp
Normal file
@ -0,0 +1 @@
|
|||||||
|
const auto error_eof_in_tag_data = mstch::map{{"hello", std::string{"world"}}};
|
1
test/data/error_eof_in_tag.mustache
Normal file
1
test/data/error_eof_in_tag.mustache
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{hello{{hello}}{{hello
|
1
test/data/error_eof_in_tag.txt
Normal file
1
test/data/error_eof_in_tag.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{hello
|
@ -32,6 +32,8 @@ MSTCH_TEST(empty_list)
|
|||||||
MSTCH_TEST(empty_sections)
|
MSTCH_TEST(empty_sections)
|
||||||
MSTCH_TEST(empty_string)
|
MSTCH_TEST(empty_string)
|
||||||
MSTCH_TEST(empty_template)
|
MSTCH_TEST(empty_template)
|
||||||
|
MSTCH_TEST(error_eof_in_section)
|
||||||
|
MSTCH_TEST(error_eof_in_tag)
|
||||||
MSTCH_TEST(error_not_found)
|
MSTCH_TEST(error_not_found)
|
||||||
MSTCH_TEST(escaped)
|
MSTCH_TEST(escaped)
|
||||||
MSTCH_TEST(falsy)
|
MSTCH_TEST(falsy)
|
||||||
|
Loading…
Reference in New Issue
Block a user