Text file src/internal/diff/testdata/basic.txt

     1  Example from Hunt and McIlroy, “An Algorithm for Differential File Comparison.”
     2  https://www.cs.dartmouth.edu/~doug/diff.pdf
     3  
     4  -- old --
     5  a
     6  b
     7  c
     8  d
     9  e
    10  f
    11  g
    12  -- new --
    13  w
    14  a
    15  b
    16  x
    17  y
    18  z
    19  e
    20  -- diff --
    21  diff old new
    22  --- old
    23  +++ new
    24  @@ -1,7 +1,7 @@
    25  +w
    26   a
    27   b
    28  -c
    29  -d
    30  +x
    31  +y
    32  +z
    33   e
    34  -f
    35  -g
    36  

View as plain text