github.com/JimmyHuang454/JLS-go@v0.0.0-20230831150107-90d536585ba0/internal/diff/testdata/triv.txt (about)

     1  Another example from Hunt and McIlroy,
     2  “An Algorithm for Differential File Comparison.”
     3  https://www.cs.dartmouth.edu/~doug/diff.pdf
     4  
     5  Anchored diff gives up on finding anything,
     6  since there are no unique lines.
     7  
     8  -- old --
     9  a
    10  b
    11  c
    12  a
    13  b
    14  b
    15  a
    16  -- new --
    17  c
    18  a
    19  b
    20  a
    21  b
    22  c
    23  -- diff --
    24  diff old new
    25  --- old
    26  +++ new
    27  @@ -1,7 +1,6 @@
    28  -a
    29  -b
    30  -c
    31  -a
    32  -b
    33  -b
    34  -a
    35  +c
    36  +a
    37  +b
    38  +a
    39  +b
    40  +c