summaryrefslogtreecommitdiff
path: root/tests/test_document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_document.cpp')
-rw-r--r--tests/test_document.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_document.cpp b/tests/test_document.cpp
index 32890e2..3b9c135 100644
--- a/tests/test_document.cpp
+++ b/tests/test_document.cpp
@@ -217,6 +217,11 @@ TEST_XML(document_save_file, "<node/>")
unlink("tests/data/output.xml");
}
+TEST_XML(document_save_file_error, "<node/>")
+{
+ CHECK(!doc.save_file("tests/data/unknown/output.xml"));
+}
+
TEST(document_load_buffer)
{
const pugi::char_t text[] = STR("<?xml?><node/>");