Billy Keyes
774281f01b
Standardize on int64 for line numbers
...
This matches the type used for positions in text fragments.
2020-01-09 22:11:25 -08:00
Billy Keyes
7bd4e0bb0e
Fix EOF handling in TextFragment#ApplyStrict
...
io.EOF was not properly accounted for when dealing with patches that are
missing trailing newline characters.
2020-01-09 22:05:24 -08:00
Billy Keyes
02f7ff4f79
Add positive tests for TextFragment#ApplyStrict
...
These cover all of the cases (I think) where application should succeed.
2020-01-08 23:04:44 -08:00
Billy Keyes
ae704236bb
Return ApplyError when ApplyString fails
...
This wraps the underlying error with optional position information and
provides a way to test if the error was due to a conflict. At the
moment, details about the conflict are not exposed outside of the
message string.
2020-01-07 22:59:25 -08:00
Billy Keyes
93d46e805c
Add initial pass at ApplyStrict functions
...
Text fragment application is implemented but untested and with several
TODOs, binary fragment application is unimplemented and will panic.
2020-01-05 20:37:59 -08:00