def METHOD_NAME():
    for mismatch_cost in [1, 10, 20, 30, 40, 50]:
        for gap_start in [1, 10, 20, 30, 40, 50]:
            assert ed_aff(b"", b"", [], gap_start, 10) == 0
            assert ed_aff(b"", b"A", [], gap_start, 10) == gap_start
            assert ed_aff(b"A", b"B", [mismatch_cost], gap_start, 10) == min(
                gap_start * 2, mismatch_cost
            )
            assert ed_aff(b"A", b"A", [mismatch_cost], gap_start, 10) == 0
            assert ed_aff(b"A", b"AB", [mismatch_cost], gap_start, 10) == gap_start
            assert ed_aff(b"BA", b"AB", [mismatch_cost] * 2, gap_start, 100) == min(
                2 * mismatch_cost, 2 * gap_start
            )
            for s, t in STRING_PAIRS:
                s = s.encode("ascii")
                t = t.encode("ascii")
                if s != b"":
                    assert (
                        ed_aff(s, b"", [mismatch_cost] * len(s), gap_start, 10)
                        == gap_start + (len(s) - 1) * 10
                    )
                    assert ed_aff(b"", s, [], gap_start, 10) == gap_start + (len(s) - 1) * 10
                assert ed_aff(s, t, [mismatch_cost] * len(s), gap_start, 10) == ed_aff(
                    t, s, [mismatch_cost] * len(t), gap_start, 10
                )