blob: 5d63b24b70353ca3ed50e0f43a6c03d9443e7cff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
local rb = require "util.ringbuffer";
describe("util.ringbuffer", function ()
describe("#new", function ()
it("has a constructor", function ()
assert.Function(rb.new);
end);
it("can be created", function ()
assert.truthy(rb.new());
end);
end);
describe(":write", function ()
local b = rb.new();
it("works", function ()
assert.truthy(b:write("hi"));
end);
end);
end);
|