Commit Graph

2 Commits (020cd46f0341663d71ebdbd02f67032ddcb4a677)

Author SHA1 Message Date
Kim Alvefur d3b3e21720 util.dbuffer: Expose length as :len() method, like strings 5 years ago
Kim Alvefur 095c4f8344 util.dbuffer: Simplify test case 5 years ago
Kim Alvefur 21ecc6ca39 util.dbuffer: Simplify test case 5 years ago
Matthew Wild 7fa4cc8de0 util.dbuffer: Fix :sub() not working with partially-consumed chunks (thanks Zash for test case) 5 years ago
Kim Alvefur e21429d8e4 util.dbuffer: Add failing test case involving :sub after :discard 5 years ago
Matthew Wild 9115d2a366 util.dbuffer: Fix traceback when :collapse() is called on empty buffer 5 years ago
Matthew Wild 67cf276ba2 util.dbuffer: If no bytes parameter passed to read, return remainder of frontmost chunk 6 years ago
Matthew Wild 8cc0b83179 util.dbuffer: Don't use # operator in tests, Lua 5.1 doesn't support __len 6 years ago
Matthew Wild fb8e10737d util.dbuffer: dynamic string buffer 6 years ago
Matthew Wild 558a365575 util.ringbuffer: Fix accidentally committed test change (thanks buildbot) 6 years ago
Matthew Wild f3add85e3c util.ringbuffer: Add some additional asserts to tests 6 years ago
Matthew Wild b9a670dace util.ringbuffer: Ensure unsigned chars are always returned from :byte() 6 years ago
Matthew Wild dd0274b8c7 util.ringbuffer: Add test for :discard() 6 years ago
Matthew Wild 14a436817d util.ringbuffer: Add :sub() and :byte() methods equivalent to the string methods 6 years ago
Kim Alvefur 4bab7af07d util.ringbuffer: Prevent creation of buffer with negative size 6 years ago
Kim Alvefur 0bb1474ce6 util.ringbuffer: Prevent creation of zero-size buffer 6 years ago
Kim Alvefur 838f8ebd5b util.ringbuffer: Add some initial tests 6 years ago