summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-07 11:02:16 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-07 11:02:16 +0100
commit3b5914a9cbee7465feb117e44b1ce0cecfda695c (patch)
treeee19c13ef89412bf88c7285faf5ab92380576a85
parentUse the same xsl:output settings across all files (diff)
downloadgentoobrowse-3b5914a9cbee7465feb117e44b1ce0cecfda695c.tar.bz2
gentoobrowse-3b5914a9cbee7465feb117e44b1ce0cecfda695c.tar.xz
gentoobrowse-3b5914a9cbee7465feb117e44b1ce0cecfda695c.zip
Test sitemap has an xml declaration
-rw-r--r--gentoobrowse/src/test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gentoobrowse/src/test.cpp b/gentoobrowse/src/test.cpp
index aa49a07..9be68a6 100644
--- a/gentoobrowse/src/test.cpp
+++ b/gentoobrowse/src/test.cpp
@@ -96,6 +96,8 @@ public:
auto h = getResponseHeaders();
BOOST_REQUIRE_EQUAL(h["Status"], "200 OK");
BOOST_REQUIRE_EQUAL(h["Content-Type"], "application/xml");
+ BOOST_TEST_INFO(this->output.view());
+ BOOST_REQUIRE_NE(this->output.view().find("<?xml version"), std::string_view::npos);
xmlpp::DomParser p;
p.parse_stream(this->output);
}
@@ -122,6 +124,8 @@ public:
auto h = getResponseHeaders();
BOOST_REQUIRE_EQUAL(h["Status"], "200 OK");
BOOST_REQUIRE_EQUAL(h["Content-Type"], "application/atom+xml");
+ BOOST_TEST_INFO(this->output.view());
+ BOOST_REQUIRE_NE(this->output.view().find("<?xml version"), std::string_view::npos);
xmlpp::DomParser p;
p.parse_stream(this->output);
}