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 | fe33c0e979ebfc41c3eb9f561589f0d5d8810aaf (patch) | |
| tree | 526d2f71581e2584c9de2b958fd89b6ce0fb0ac1 /tests/buffer.lua | |
| parent | 602818b895fec710b0534b0b8fa7f5e1f57203c2 (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()) + |
