def METHOD_NAME():
    for mismatch_cost in [1, 10, 30, 40, 50]:
        for gap_start in [1, 10, 30, 40, 50]:
            assert ed_aff("", "", [], gap_start, 10) == 0
            assert ed_aff("", "A", [], gap_start, 10) == gap_start
            assert ed_aff("A", "B", [mismatch_cost], gap_start, 10) == min(
                gap_start * 2, mismatch_cost
            )
            assert ed_aff("A", "A", [mismatch_cost], gap_start, 10) == 0
            assert ed_aff("A", "AB", [mismatch_cost], gap_start, 10) == gap_start
            assert ed_aff("BA", "AB", [mismatch_cost] * 2, gap_start, 100) == min(
                2 * mismatch_cost, 2 * gap_start
            )
            for s, t in STRING_PAIRS:
                if s != "":
                    assert (
                        ed_aff(s, "", [mismatch_cost] * len(s), gap_start, 10)
                        == gap_start + (len(s) - 1) * 10
                    )
                    assert ed_aff("", 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
                )