Skip to content
Commit a4d0a05c authored by Igor Kushnir's avatar Igor Kushnir 💬
Browse files

test_gdbprinters: test QMap with a single element

libstdc++'s printers.py contains the following function used by printers
such as StdMapPrinter:
def num_elements(num):
    """Return either "1 element" or "N elements" depending on the argument."""
    return '1 element' if num == 1 else '%d elements' % num

The added check verifies that the regex in QMapPrinter.num_children()
matches the singular form of the word "element".
parent 00645c9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment