From 4f6708641c0290f533079777661119c06c2f14ce Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 9 Dec 2017 13:53:35 +0000 Subject: Assert of email body before asserting its contents --- gentoobrowse-api/unittests/testNotifications.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gentoobrowse-api/unittests/testNotifications.cpp b/gentoobrowse-api/unittests/testNotifications.cpp index 79ea08f..3dcdd5c 100644 --- a/gentoobrowse-api/unittests/testNotifications.cpp +++ b/gentoobrowse-api/unittests/testNotifications.cpp @@ -25,6 +25,7 @@ save(const std::string & name, Gentoo::EmailPtr e) TidyDoc tdoc = tidyCreate(); BOOST_REQUIRE_EQUAL(1, tidyOptSetBool(tdoc, TidyIndentContent, yes)); BOOST_REQUIRE_EQUAL(1, tidyOptSetInt(tdoc, TidyWrapLen, 0)); + BOOST_REQUIRE_EQUAL(2, e->body.size()); BOOST_REQUIRE_EQUAL(0, tidyParseString(tdoc, e->body[1]->payload.c_str())); BOOST_REQUIRE_EQUAL(0, tidyCleanAndRepair(tdoc)); BOOST_REQUIRE_EQUAL(0, tidySaveFile(tdoc, (binDir / name).replace_extension(".html").c_str())); -- cgit v1.2.3