We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd690f9 commit 4a3297fCopy full SHA for 4a3297f
spec.lua
@@ -62,7 +62,7 @@ end
62
---Tests if value exists
63
---@param value any
64
---@return boolean
65
-function M.some(value)
+function M.exists(value)
66
return value ~= nil
67
end
68
spec_test.lua
@@ -37,10 +37,10 @@ describe("spec.lua", function()
37
assert.False(spec.null "Test")
38
end)
39
40
- it("spec.some", function()
41
- assert.False(spec.some(nil))
42
- assert.True(spec.some { 1, 2, 3 })
43
- assert.True(spec.some "Test")
+ it("spec.exists", function()
+ assert.False(spec.exists(nil))
+ assert.True(spec.exists { 1, 2, 3 })
+ assert.True(spec.exists "Test")
44
45
46
it("spec.all_of", function()
0 commit comments