Skip to content

Commit 4a3297f

Browse files
committed
rename spec.some to spec.exists
1 parent fd690f9 commit 4a3297f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ end
6262
---Tests if value exists
6363
---@param value any
6464
---@return boolean
65-
function M.some(value)
65+
function M.exists(value)
6666
return value ~= nil
6767
end
6868

spec_test.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ describe("spec.lua", function()
3737
assert.False(spec.null "Test")
3838
end)
3939

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")
40+
it("spec.exists", function()
41+
assert.False(spec.exists(nil))
42+
assert.True(spec.exists { 1, 2, 3 })
43+
assert.True(spec.exists "Test")
4444
end)
4545

4646
it("spec.all_of", function()

0 commit comments

Comments
 (0)