"""Regression tests for pypa/packaging #1064: perf: dual replace

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_1064_p1_value_0():
    """Breakwater P1: base behaviour pinned (found by differential testing; label: likely-bug)."""
    from packaging.utils import canonicalize_name
    assert canonicalize_name('Á') == 'Á'


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


def test_1064_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') == 'Á\x00'


def test_1064_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_1064_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_1064_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_1064_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
