From 3b5914a9cbee7465feb117e44b1ce0cecfda695c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 7 Apr 2023 11:02:16 +0100 Subject: Test sitemap has an xml declaration --- gentoobrowse/src/test.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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("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("output); } -- cgit v1.2.3