<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pakakeh.go/lib/text/diff/testdata, branch dev</title>
<subtitle>Collections of packages and tools for working with Go programming language.</subtitle>
<id>http://git.kilabit.info/pakakeh.go/atom?h=dev</id>
<link rel='self' href='http://git.kilabit.info/pakakeh.go/atom?h=dev'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/'/>
<updated>2026-04-12T13:29:02Z</updated>
<entry>
<title>text/diff: rewrite TestText to test Files with LevelWords</title>
<updated>2026-04-12T13:29:02Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-04-12T11:49:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=986ad438d702ebf7d2604def94eaf3e807be7cfd'/>
<id>urn:sha1:986ad438d702ebf7d2604def94eaf3e807be7cfd</id>
<content type='text'>
In the struct Data, we add new method WriteLineChunks to print the
LineChunks data into [io.Writer] w.
</content>
</entry>
<entry>
<title>text/diff: add example for Files, Lines, Text, and Unified</title>
<updated>2026-04-12T12:01:45Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-04-12T10:38:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=bfa79cf52d62418f622289cee7c1fe5807c73be6'/>
<id>urn:sha1:bfa79cf52d62418f622289cee7c1fe5807c73be6</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>text/diff: implements unified diff</title>
<updated>2026-04-12T08:19:03Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-04-10T14:40:11Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=f9f699cd2bff3f9c6d84e597039f8bf694926792'/>
<id>urn:sha1:f9f699cd2bff3f9c6d84e597039f8bf694926792</id>
<content type='text'>
</content>
</entry>
<entry>
<title>text/diff: refactoring to use local Line instead from text package</title>
<updated>2026-04-10T07:49:55Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-04-10T05:35:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=44aa2ea2da7a02eb7d52d500e40fe4fd7b5752e3'/>
<id>urn:sha1:44aa2ea2da7a02eb7d52d500e40fe4fd7b5752e3</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>text/diff: rewrite the test again by reading from files</title>
<updated>2022-09-07T17:47:06Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-09-07T17:47:06Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=c899459bd251cdefac8f97db32a1253891f5bf97'/>
<id>urn:sha1:c899459bd251cdefac8f97db32a1253891f5bf97</id>
<content type='text'>
The goal is to remove dependency to lib/test so we can use text/diff
in the lib/test in the future.
</content>
</entry>
<entry>
<title>text/diff: rewrite the test using test.Data</title>
<updated>2022-08-28T19:01:56Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-08-28T19:01:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=53c9e1165011b8c3474f1c124b8db8799878002c'/>
<id>urn:sha1:53c9e1165011b8c3474f1c124b8db8799878002c</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Merge package "github.com/shuLhan/tekstus/diff" to "text/diff"</title>
<updated>2018-09-17T15:51:23Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2018-09-16T17:46:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=9d378c9e1061a509b7ec5b0580edb48182173148'/>
<id>urn:sha1:9d378c9e1061a509b7ec5b0580edb48182173148</id>
<content type='text'>
</content>
</entry>
</feed>
