Skip to content

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

Closed

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"

Activity

  1. added 2 commits that reference this issue on Feb 7, 2024
    32530af
    2c36841
  2. added a commit that references this issue on Feb 9, 2024
    a94c6a6
  3. added a commit that references this issue on Feb 9, 2024
    02632e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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