Thanks to visit codestin.com
Credit goes to github.com

Skip to content

When range of lines is a single line, the format differs from upstream #10

@oSoMoN

Description

@oSoMoN

For the normal diff, when range of lines is a single line, the format differs from upstream.

(spotted when trying to run the upstream test suite, specifically that test)

Upstream compacts range "a,a" as just "a":

echo a > a
echo b > b
diff a b | head -1 # outputs "1c1"

Whereas this implementation doesn't compact it:

cargo run a b # incorrectly outputs "1,1c1,1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions