aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/mason-core/functional/list_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/mason-core/functional/list_spec.lua b/tests/mason-core/functional/list_spec.lua
index 999b3625..ce0c285f 100644
--- a/tests/mason-core/functional/list_spec.lua
+++ b/tests/mason-core/functional/list_spec.lua
@@ -190,4 +190,9 @@ describe("functional: list", function()
it("joins lists", function()
assert.equals("Hello, John", _.join(", ", { "Hello", "John" }))
end)
+
+ it("should uniq_by lists", function()
+ local list = { "Person.", "Woman.", "Man.", "Person.", "Woman.", "Camera.", "TV." }
+ assert.same({ "Person.", "Woman.", "Man.", "Camera.", "TV." }, _.uniq_by(_.identity, list))
+ end)
end)