def compare(original, tested=''):
    """Compare two lines together, paying attention to the different
    possibilities to end lines.

    >>> compare(None)
    False
    >>> compare('\\n')
    True
    >>> compare('\\r\\n')
    True
    >>> compare('foo\\r\\n')
    False
    >>> compare(None, 'foo')
    False
    >>> compare('foo', 'bar')
    False
    >>> compare('foo', 'foo')
    False
    >>> compare('foo\\n', 'foo')
    True
    >>> compare('foo\\r\\n', 'foo')
    True
    >>> compare('foo\\t\\n', 'foo')
    False
    """
    if original and original.startswith(tested):
        if original[len(tested):] in ('', '\r', '\n', '\r\n'):
            return True
    return False
