mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
14 lines
326 B
Lua
14 lines
326 B
Lua
local eq = assert.are.same
|
|
local ale = require("ale")
|
|
|
|
describe("ale.pad", function()
|
|
it("should pad non-empty strings", function()
|
|
eq(" foo", ale.pad("foo"))
|
|
end)
|
|
|
|
it("should return empty strings for nil or empty strings", function()
|
|
eq("", ale.pad(nil))
|
|
eq("", ale.pad(""))
|
|
end)
|
|
end)
|