chiark / gitweb /
documentation/doxygen: use a correct condition in the test.
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 14 Sep 2024 17:05:55 +0000 (19:05 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 14 Sep 2024 17:05:55 +0000 (19:05 +0200)
It's broken like that in 1.9.7 already. That's what I get for pushing
09ddeebf4e77b8912bd8c914c5f75b25dd79d8a1 to master at 4 AM.

documentation/test_doxygen/test_compound.py
documentation/test_doxygen/test_contents.py
documentation/test_doxygen/test_undocumented.py

index e945aea6dda6c9d242dad8bfeba263a01c675f16..622c63a4511d1f5b9e4b043945b0e58853c23893 100644 (file)
@@ -163,7 +163,7 @@ class ModulesInNamespace(IntegrationTestCase):
         # stupid because the XML is no longer self-contained. I refuse to
         # implement parsing of nested XMLs, so the output will lack some
         # members if groups are used.
-        if parse_version(doxygen_version()) > parse_version("1.9.7"):
+        if parse_version(doxygen_version()) >= parse_version("1.9.7"):
             self.assertEqual(*self.actual_expected_contents('namespaceNamespace.html', 'namespaceNamespace-stupid.html'))
             self.assertEqual(*self.actual_expected_contents('file3_8h.html', 'file3_8h-stupid.html'))
         else:
@@ -262,7 +262,7 @@ class Includes(IntegrationTestCase):
         # stupid because the XML is no longer self-contained. I refuse to
         # implement parsing of nested XMLs, so the output will lack some
         # members if groups are used.
-        if parse_version(doxygen_version()) > parse_version("1.9.7"):
+        if parse_version(doxygen_version()) >= parse_version("1.9.7"):
             self.assertEqual(*self.actual_expected_contents('namespaceContained.html', 'namespaceContained-stupid.html'))
         else:
             self.assertEqual(*self.actual_expected_contents('namespaceContained.html'))
@@ -289,7 +289,7 @@ class IncludesDisabled(IntegrationTestCase):
         # stupid because the XML is no longer self-contained. I refuse to
         # implement parsing of nested XMLs, so the output will lack some
         # members if groups are used.
-        if parse_version(doxygen_version()) > parse_version("1.9.7"):
+        if parse_version(doxygen_version()) >= parse_version("1.9.7"):
             self.assertEqual(*self.actual_expected_contents('namespaceContained.html', 'namespaceContained-stupid.html'))
         else:
             self.assertEqual(*self.actual_expected_contents('namespaceContained.html'))
@@ -310,7 +310,7 @@ class IncludesUndocumentedFiles(IntegrationTestCase):
         # stupid because the XML is no longer self-contained. I refuse to
         # implement parsing of nested XMLs, so the output will lack some
         # members if groups are used.
-        if parse_version(doxygen_version()) > parse_version("1.9.7"):
+        if parse_version(doxygen_version()) >= parse_version("1.9.7"):
             self.assertEqual(*self.actual_expected_contents('namespaceContained.html', '../compound_includes_disabled/namespaceContained-stupid.html'))
         else:
             self.assertEqual(*self.actual_expected_contents('namespaceContained.html', '../compound_includes_disabled/namespaceContained.html'))
index a55a58a6c347b91ca68452925663b938d2421e64..b661a89f6c888dc57d139ad46d72d30b14bb19a4 100644 (file)
@@ -448,7 +448,7 @@ class AnchorInBothGroupAndNamespace(IntegrationTestCase):
         # stupid because the XML is no longer self-contained. I refuse to
         # implement parsing of nested XMLs, so the output will lack some
         # members if groups are used.
-        if parse_version(doxygen_version()) > parse_version("1.9.7"):
+        if parse_version(doxygen_version()) >= parse_version("1.9.7"):
             self.assertEqual(*self.actual_expected_contents('namespaceFoo.html', 'namespaceFoo-stupid.html'))
         else:
             self.assertEqual(*self.actual_expected_contents('namespaceFoo.html'))
index b4d83a42328b421a031ba2ae390479366d69965b..78734e3e9a1ad49715405fc8879d72b1c7cc1405 100644 (file)
@@ -48,7 +48,7 @@ class Undocumented(IntegrationTestCase):
         # stupid because the XML is no longer self-contained. I refuse to
         # implement parsing of nested XMLs, so the output will lack some
         # members if groups are used.
-        if parse_version(doxygen_version()) > parse_version("1.9.7"):
+        if parse_version(doxygen_version()) >= parse_version("1.9.7"):
             self.assertEqual(*self.actual_expected_contents('namespaceNamespace.html', 'namespaceNamespace-stupid.html'))
             self.assertEqual(*self.actual_expected_contents('File_8h.html', 'File_8h-stupid.html'))
         else:
@@ -67,7 +67,7 @@ class Undocumented(IntegrationTestCase):
 
             # See above, it's because certain symbols got skipped due to
             # stupidity
-            if parse_version(doxygen_version()) > parse_version("1.9.7"):
+            if parse_version(doxygen_version()) >= parse_version("1.9.7"):
                 self.assertEqual(symbol_count, 28)
             else:
                 self.assertEqual(symbol_count, 44)