From 25313762aac8fc313b769f20298bd4e6473cc6dd Mon Sep 17 00:00:00 2001 From: William Boman Date: Tue, 20 Dec 2022 08:42:58 +0100 Subject: feat(functional): add trim_start and assoc (#779) --- tests/mason-core/functional/string_spec.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/mason-core/functional/string_spec.lua') diff --git a/tests/mason-core/functional/string_spec.lua b/tests/mason-core/functional/string_spec.lua index 7bbe06c5..02062f4c 100644 --- a/tests/mason-core/functional/string_spec.lua +++ b/tests/mason-core/functional/string_spec.lua @@ -50,4 +50,12 @@ Ipsum assert.equals("HELLO!", _.to_upper "Hello!") assert.equals("hello!", _.to_lower "Hello!") end) + + it("trim strings", function() + assert.equals("HELLO!", _.trim " HELLO! ") + end) + + it("trim_starts strings", function() + assert.equals("HELLO! ", _.trim_start("%s", " HELLO! ")) + end) end) -- cgit v1.2.3-70-g09d2