aboutsummaryrefslogtreecommitdiffstats
path: root/tests/core/functional/string_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/core/functional/string_spec.lua')
-rw-r--r--tests/core/functional/string_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/core/functional/string_spec.lua b/tests/core/functional/string_spec.lua
index e24819d9..cbee0617 100644
--- a/tests/core/functional/string_spec.lua
+++ b/tests/core/functional/string_spec.lua
@@ -19,4 +19,8 @@ describe("functional: string", function()
assert.same({ "This", "is", "a", "sentence" }, _.split("%s", "This is a sentence"))
assert.same({ "This", "is", "a", "sentence" }, _.split("|", "This|is|a|sentence"))
end)
+
+ it("should gsub strings", function()
+ assert.same("predator", _.gsub("^apex%s*", "", "apex predator"))
+ end)
end)