def test_text_vertical_extents(
    text, font_file_name, min_allowed, max_allowed, language=None):
    """Runs given text through HarfBuzz to find cases that go out of bounds."""

    hb_output = run_harfbuzz_on_text(text, font_file_name, language)

    split_text = text.split('\n')
    exceeding_lines = []
    for line_no, output_line in enumerate(hb_output.split('\n')):
        if not output_line:
            continue

        min_height, max_height = get_line_extents_from_json(
            output_line, font_file_name)

        if min_height is None:
            continue
        if min_allowed < min_height or max_height > max_allowed:
            exceeding_lines.append(((min_height, max_height),
                                    split_text[line_no]))

    return exceeding_lines
dataset/ETHPy150Open googlei18n/nototools/nototools/render.py/test_text_vertical_extents/swapped operands of `<`