"""Regression tests for pypa/packaging #1030: perf: translate for canonicalize_name

Generated by Breakwater. Each test passed on the base commit and failed on the head commit when
generated; it pins the old behaviour.
"""


def test_1030_p1_value_0():
    """Breakwater P1: base behaviour pinned (found by differential testing; label: likely-bug)."""
    from packaging.utils import canonicalize_name
    assert canonicalize_name('İ') == 'i̇'


def test_1030_p1_value_1():
    """Breakwater P1: base behaviour pinned (found by differential testing; label: likely-bug)."""
    from packaging.utils import canonicalize_name
    assert canonicalize_name('İ ') == 'i̇ '


def test_1030_p1_value_2():
    """Breakwater P1: base behaviour pinned (found by differential testing; label: likely-bug)."""
    from packaging.utils import canonicalize_name
    assert canonicalize_name('İ\x00') == 'i̇\x00'


def test_1030_p3_gt_3():
    """Breakwater P3: base behaviour pinned (found by differential testing; label: likely-bug)."""
    from packaging.utils import canonicalize_name
    a = canonicalize_name('İ')
    b = canonicalize_name('ÖÄ')
    assert (a > b) is False


def test_1030_p3_gt_4():
    """Breakwater P3: base behaviour pinned (found by differential testing; label: likely-bug)."""
    from packaging.utils import canonicalize_name
    a = canonicalize_name('Ω')
    b = canonicalize_name('ẞ')
    assert (a > b) is True


def test_1030_p3_lt_5():
    """Breakwater P3: base behaviour pinned (found by differential testing; label: likely-bug)."""
    from packaging.utils import canonicalize_name
    a = canonicalize_name('İ')
    b = canonicalize_name('ÖÄ')
    assert (a < b) is True


def test_1030_p3_lt_6():
    """Breakwater P3: base behaviour pinned (found by differential testing; label: likely-bug)."""
    from packaging.utils import canonicalize_name
    a = canonicalize_name('Ω')
    b = canonicalize_name('ẞ')
    assert (a < b) is False
