diff options
| author | William Boman <william@redwill.se> | 2022-06-03 19:04:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-03 19:04:52 +0200 |
| commit | f5f6538984b5bc9bccfc544960e05d47304f3c5e (patch) | |
| tree | 9f1f0fcd3b35a7ace0efc9966b652bb9b8234121 /tests/core/functional/string_spec.lua | |
| parent | added wgsl_analyzer server (#719) (diff) | |
| download | mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar.gz mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar.bz2 mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar.lz mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar.xz mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.tar.zst mason-f5f6538984b5bc9bccfc544960e05d47304f3c5e.zip | |
feat: add apex_ls (#746)
Closes #701.
Diffstat (limited to 'tests/core/functional/string_spec.lua')
| -rw-r--r-- | tests/core/functional/string_spec.lua | 4 |
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) |
