summaryrefslogtreecommitdiff
path: root/tests/modules/string
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-16 16:06:06 +0800
committerruki <[email protected]>2017-06-16 16:06:06 +0800
commit8e3a19f241b01e2ee4d1d65a2124bd82fd4fc96b (patch)
treee6e2e1f7e6135df558bfb7b430319d07fb0679d7 /tests/modules/string
parentb3cc1e1c42d8b367f2d0b1a93c236abe1cc94b34 (diff)
fix string test
Diffstat (limited to 'tests/modules/string')
-rw-r--r--tests/modules/string/test.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/modules/string/test.lua b/tests/modules/string/test.lua
index b2e7a23c7..98c76661f 100644
--- a/tests/modules/string/test.lua
+++ b/tests/modules/string/test.lua
@@ -1,4 +1,5 @@
function main()
- assert(string.less("awd","dwa"))
- assert(not string.less("dwa","awd"))
+ assert(not ("rc"):endswith("xcadas"))
+ assert(("aaaccc"):endswith("ccc"))
+ assert(("aaaccc"):startswith("aaa"))
end