diff options
| author | amelia squires <[email protected]> | 2024-09-29 02:49:05 -0500 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2024-09-29 02:49:05 -0500 |
| commit | e29d3ea86551380ace8e2c86c9f1f63e901941e1 (patch) | |
| tree | 526d2f71581e2584c9de2b958fd89b6ce0fb0ac1 /tests/buffer.lua | |
| parent | 1feb3c40514a7c1726f29502ce37966c308bea79 (diff) | |
docs n stuff
Diffstat (limited to 'tests/buffer.lua')
| -rw-r--r-- | tests/buffer.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/buffer.lua b/tests/buffer.lua new file mode 100644 index 0000000..3309aed --- /dev/null +++ b/tests/buffer.lua @@ -0,0 +1,9 @@ +llby = require "lullaby" + +b = llby.thread.buffer(llby.crypto.md5()) + +print(b.update(b:get(), "meow"):final()) +print(b.update(b:get(), "meow"):final()) +b:mod(function(this) return this:update("meow") end) +print(b.update(b:get(), "meow"):final()) + |
