Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-stringx2.lua')
-rw-r--r--tests/test-stringx2.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/test-stringx2.lua b/tests/test-stringx2.lua
deleted file mode 100644
index c690e58..0000000
--- a/tests/test-stringx2.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-local asserteq = require 'pl.test' . asserteq
-
-
--- strings ---
-require 'pl.stringx'.import() ---> convenient!
-local s = '123'
-assert (s:isdigit())
-assert (not s:isspace())
-s = 'here the dog is just a dog'
-assert (s:startswith('here'))
-assert (s:endswith('dog'))
-assert (s:count('dog') == 2)
-s = ' here we go '
-asserteq (s:lstrip() , 'here we go ')
-asserteq (s:rstrip() , ' here we go')
-asserteq (s:strip() , 'here we go')
-asserteq (('hello'):center(20,'+') , '+++++++hello++++++++')
-
-asserteq (('hello dolly'):title() , 'Hello Dolly')
-asserteq (('h bk bonzo TOK fred m'):title() , 'H Bk Bonzo Tok Fred M')