def test_relative16_inequality_different_types(offset):
    assert Relative16(offset) != object()
def test_relative16_equal_hash(offset):
    assert hash(Relative16(offset)) == hash(Relative16(offset))
def test_relative16_inequality(a, b):
    assume(a != b)
    assert Relative16(a) != Relative16(b)
def test_relative16_equality(offset):
    assert Relative16(offset) == Relative16(offset)
def test_relative16_repr(offset):
    r = repr(Relative16(offset))
    assert r.startswith('Relative16')
    assert str(offset) in r
    assert check_balanced(r)
def test_relative16_two_byte_offsets_raise_value_error(offset):
    with raises(ValueError):
        Relative16(offset)
def test_relative16_value(offset):
    assert Relative16(offset).offset == offset