aboutsummaryrefslogtreecommitdiff
path: root/lib/text/diff/testdata
AgeCommit message (Collapse)Author
3 daystext/diff: rewrite TestText to test Files with LevelWordsShulhan
In the struct Data, we add new method WriteLineChunks to print the LineChunks data into [io.Writer] w.
3 daystext/diff: add example for Files, Lines, Text, and UnifiedShulhan
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.
3 daystext/diff: implements unified diffShulhan
5 daystext/diff: refactoring to use local Line instead from text packageShulhan
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.
2022-09-08text/diff: rewrite the test again by reading from filesShulhan
The goal is to remove dependency to lib/test so we can use text/diff in the lib/test in the future.
2022-08-29text/diff: rewrite the test using test.DataShulhan
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.
2018-09-17Merge package "github.com/shuLhan/tekstus/diff" to "text/diff"Shulhan