diff options
| author | Jakob Lykke Andersen <Jakob@caput.dk> | 2020-05-16 16:56:53 +0200 |
|---|---|---|
| committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2020-05-16 16:56:53 +0200 |
| commit | 4dad6d626259cf9337687a3ae168e6b30949594a (patch) | |
| tree | 684e78152bf688336d4ef68dfd912f2e61e35ca6 /tests/test_domain_c.py | |
| parent | ddf48f595d6392915a5d46991912a29ebd011101 (diff) | |
| download | sphinx-git-4dad6d626259cf9337687a3ae168e6b30949594a.tar.gz | |
C, enable tests of anon entities
Diffstat (limited to 'tests/test_domain_c.py')
| -rw-r--r-- | tests/test_domain_c.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/test_domain_c.py b/tests/test_domain_c.py index cc9ce0b24..795e8ed37 100644 --- a/tests/test_domain_c.py +++ b/tests/test_domain_c.py @@ -423,12 +423,11 @@ def test_enum_definitions(): def test_anon_definitions(): - return # TODO - check('class', '@a', {3: "Ut1_a"}) - check('union', '@a', {3: "Ut1_a"}) - check('enum', '@a', {3: "Ut1_a"}) - check('class', '@1', {3: "Ut1_1"}) - check('class', '@a::A', {3: "NUt1_a1AE"}) + check('struct', '@a', {1: "@a"}, asTextOutput='struct [anonymous]') + check('union', '@a', {1: "@a"}, asTextOutput='union [anonymous]') + check('enum', '@a', {1: "@a"}, asTextOutput='enum [anonymous]') + check('struct', '@1', {1: "@1"}, asTextOutput='struct [anonymous]') + check('struct', '@a.A', {1: "@a.A"}, asTextOutput='struct [anonymous].A') def test_initializers(): |
