diff options
author | Jeremy Maitin-Shepard <jbms@google.com> | 2022-03-17 18:13:47 -0700 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2022-04-17 14:22:24 +0200 |
commit | 2d2e0ac01a6594389eef267d04f53f1645f27bad (patch) | |
tree | 4b9329666de9c7e8264558877493225155c3ecb7 /tests | |
parent | 128f0ccc775ff392781e84ba9308599b16c7b523 (diff) | |
download | sphinx-git-2d2e0ac01a6594389eef267d04f53f1645f27bad.tar.gz |
[C++] Support conditional operator "?"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_domain_cpp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py index 72ffc474d..230c97ccd 100644 --- a/tests/test_domain_cpp.py +++ b/tests/test_domain_cpp.py @@ -326,7 +326,8 @@ def test_domain_cpp_ast_expressions(): exprCheck('5 .* 42', 'dsL5EL42E') exprCheck('5 ->* 42', 'pmL5EL42E') # conditional - # TODO + exprCheck('5 ? 7 : 3', 'cnL5EL7EL3E') + exprCheck('5 = 6 ? 7 = 8 : 3', 'aSL5EcnL6EaSL7EL8EL3E') # assignment exprCheck('a = 5', 'aS1aL5E') exprCheck('a *= 5', 'mL1aL5E') |