import re


def get_num(name):
    """
    If a test case name contains a number, just return the number.
    Useful for sorting.
    """
    result = re.search(r"\d+", name)
    if result:
        return int(result.group(0))
    else:
        return 0