summaryrefslogtreecommitdiff
path: root/tests/test_parse.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-03-05 11:46:34 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-03-05 11:46:34 -0800
commit12e137d12fe6e6492e669cfa6c333f4a8911b1b2 (patch)
tree86dafa2af2734cd4d1f1e314b843ae9830273e34 /tests/test_parse.cpp
parent9749920c8204930f868fed7fcf38ea2cc2b5a2ec (diff)
tests: Move null buffer tests to test_document
Remove size=0 test since a better test is already there.
Diffstat (limited to 'tests/test_parse.cpp')
-rw-r--r--tests/test_parse.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/test_parse.cpp b/tests/test_parse.cpp
index 131840c..1b1e807 100644
--- a/tests/test_parse.cpp
+++ b/tests/test_parse.cpp
@@ -868,22 +868,6 @@ TEST(parse_empty)
CHECK(doc.load_string(STR(""), parse_fragment) && !doc.first_child());
}
-TEST(parse_load_buffer_null)
-{
- xml_document doc;
-
- CHECK(doc.load_buffer(0, 12).status == status_io_error && !doc.first_child());
- CHECK(doc.load_buffer(0, 12, parse_fragment).status == status_io_error && !doc.first_child());
-}
-
-TEST(parse_load_buffer_empty)
-{
- xml_document doc;
-
- CHECK(doc.load_buffer("foo", 0).status == status_no_document_element && !doc.first_child());
- CHECK(doc.load_buffer("foo", 0, parse_fragment) && !doc.first_child());
-}
-
TEST(parse_out_of_memory)
{
test_runner::_memory_fail_threshold = 256;