chiark / gitweb /
doxygen: verify size of search data in the integration test.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 4 Feb 2018 21:15:37 +0000 (22:15 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 4 Feb 2018 22:56:27 +0000 (23:56 +0100)
doxygen/test/test_search.py

index 3641661048361eeb4240db375a61dddbbe9d7631..1724ef23c71755a867f775a20516ce55e6532a90 100755 (executable)
@@ -364,8 +364,10 @@ class Search(IntegrationTestCase):
         self.run_dox2html5(index_pages=[], wildcard='*.xml')
 
         with open(os.path.join(self.path, 'html', 'searchdata.bin'), 'rb') as f:
-            search_data_pretty = pretty_print(f.read())[0]
+            serialized = f.read()
+            search_data_pretty = pretty_print(serialized)[0]
         #print(search_data_pretty)
+        self.assertEqual(len(serialized), 3712)
         self.assertEqual(search_data_pretty, """
 deprecated list [0]
 ||        dir [1]