diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-07 11:02:16 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-07 11:02:16 +0100 |
commit | 3b5914a9cbee7465feb117e44b1ce0cecfda695c (patch) | |
tree | ee19c13ef89412bf88c7285faf5ab92380576a85 | |
parent | Use the same xsl:output settings across all files (diff) | |
download | gentoobrowse-3b5914a9cbee7465feb117e44b1ce0cecfda695c.tar.bz2 gentoobrowse-3b5914a9cbee7465feb117e44b1ce0cecfda695c.tar.xz gentoobrowse-3b5914a9cbee7465feb117e44b1ce0cecfda695c.zip |
Test sitemap has an xml declaration
-rw-r--r-- | gentoobrowse/src/test.cpp | 4 |
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); } |