Check that the Editor actually edits something.
authorCarl Hetherington <cth@carlh.net>
Sun, 17 Jan 2021 19:26:28 +0000 (20:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 17 Jan 2021 19:26:33 +0000 (20:26 +0100)
test/verify_test.cc

index 0b7faad59621c20c62a770813b345034317d25e7..0a9852ee47d52727696d98f3930e5584fa8dd29a 100644 (file)
@@ -138,7 +138,9 @@ public:
 
        void replace (string a, string b)
        {
+               auto old_content = _content;
                boost::algorithm::replace_all (_content, a, b);
+               BOOST_REQUIRE (_content != old_content);
        }
 
 private: