[gtk-doc] Add another test for typedef enum variants



commit 50c0995c814060f1977fde9193819be35d1c8a78
Author: Stefan Sauer <ensonic users sf net>
Date:   Sat Feb 2 13:26:29 2019 +0100

    Add another test for typedef enum variants

 tests/scan.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/tests/scan.py b/tests/scan.py
index 869c546..5632464 100755
--- a/tests/scan.py
+++ b/tests/scan.py
@@ -641,11 +641,16 @@ class ScanHeaderContentTypedefs(ScanHeaderContentTestCase):
         slist, doc_comments = self.scanHeaderContent([header])
         self.assertDecl('uint', header, slist)
 
-    def test_SkipsEnumTypedef(self):
+    def test_SkipsEnumTypedefDifferentName(self):
         header = 'typedef enum data dateenum;'
         slist, doc_comments = self.scanHeaderContent([header])
         self.assertNoDeclFound(slist)
 
+    def test_SkipsEnumTypedefUnderscoreName(self):
+        header = 'typedef enum _data data;'
+        slist, doc_comments = self.scanHeaderContent([header])
+        self.assertNoDeclFound(slist)
+
 
 if __name__ == '__main__':
     unittest.main()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]