aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_dbuffer_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.dbuffer: Fix bugs, remove multi-char support (more complex than first ↵Matthew Wild2021-06-291-21/+0
| | | | | | | | | thought) Character sequences could be split across chunk boundaries. Would require a bunch of code to make that work reliably. Only apply front_consumed on first chunk, and adjust buffer_pos accordingly.
* util.dbuffer: Add read_until() methodMatthew Wild2021-06-291-0/+44
|
* util.dbuffer: Expose length as :len() method, like stringsKim Alvefur2020-10-121-0/+1
| | | | Ref #1598
* util.dbuffer: Simplify test caseKim Alvefur2020-08-241-0/+130
An earlier theory involved the bug being related to collapsing multiple items, so it exercised that too. Also correct the comment, it referred to the space in "hello world" in an earlier version before the test string was changed to "foobar", which was what was tested in a REPL