| Age | Commit message (Collapse) | Author |
|
In the struct Data, we add new method WriteLineChunks to print the
LineChunks data into [io.Writer] w.
|
|
While at it,
- reorganize the order of functions alphabetically, following
the order from doc.
- changes the [Line.String] to print text in double quoted to help human
compare the changes for non-printable characters.
|
|
|
|
The reason for refactoring is we will add more fields to the Line type
to handle unified diff.
In the ParseLines, we changes the line number to start from 1, to make it
consistent with ReadLines and file line numbering.
This causes a lot of changes in the expectation files in testdata.
|
|
The goal is to remove dependency to lib/test so we can use text/diff
in the lib/test in the future.
|
|
Using test.Data provide much more readable input and outputs and
simplify modifying the test data instead of manually define the
expected output in struct.
|
|
|