diff options
| author | ruki <[email protected]> | 2017-06-16 16:06:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-06-16 16:06:06 +0800 |
| commit | 8e3a19f241b01e2ee4d1d65a2124bd82fd4fc96b (patch) | |
| tree | e6e2e1f7e6135df558bfb7b430319d07fb0679d7 /tests/modules | |
| parent | b3cc1e1c42d8b367f2d0b1a93c236abe1cc94b34 (diff) | |
fix string test
Diffstat (limited to 'tests/modules')
| -rw-r--r-- | tests/modules/string/test.lua | 5 |
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 |
