mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-17 03:21:27 +08:00
Implement ale.pad in Lua
This commit is contained in:
3 files changed
+30
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
Reference in new issue
Block a user