diff options
Diffstat (limited to 'tests/mason-core/functional/string_spec.lua')
| -rw-r--r-- | tests/mason-core/functional/string_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
