From be8e097f1f5324e658a5b34311ec378453bfed22 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 15 Aug 2023 17:44:19 +0100 Subject: [PATCH] tests: grammar --- .tests/strings/trim.test.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.tests/strings/trim.test.lua b/.tests/strings/trim.test.lua index 0763f17..ada67b6 100644 --- a/.tests/strings/trim.test.lua +++ b/.tests/strings/trim.test.lua @@ -1,43 +1,43 @@ local polyfill = require("worldeditadditions_core.utils.strings.polyfill") describe("trim", function() - it("work for a string that's already trimmed", function() + it("should work for a string that's already trimmed", function() assert.are.equal( polyfill.trim("test"), "test" ) end) - it("trim from the start", function() + it("should trim from the start", function() assert.are.equal( polyfill.trim(" test"), "test" ) end) - it("trim from the end", function() + it("should trim from the end", function() assert.are.equal( polyfill.trim("test "), "test" ) end) - it("trim from both ends", function() + it("should trim from both ends", function() assert.are.equal( polyfill.trim(" test "), "test" ) end) - it("trim another string", function() + it("should trim another string", function() assert.are.equal( polyfill.trim("yay "), "yay" ) end) - it("trim tabs", function() + it("should trim tabs", function() assert.are.equal( polyfill.trim("//forest "), "//forest" ) end) - it("avoid trimming spaces in the middle", function() + it("should avoid trimming spaces in the middle", function() assert.are.equal( polyfill.trim("te st "), "te st"