diff options
Diffstat (limited to 'test/split.lua')
| -rw-r--r-- | test/split.lua | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/split.lua b/test/split.lua deleted file mode 100644 index 0f64c508..00000000 --- a/test/split.lua +++ /dev/null @@ -1,18 +0,0 @@ -function split (s) - local n = 1 - local f = strfind(s,"/") - while f do - n = n+f - f = strfind(strsub(s,n),"/") - end - return strsub(s,1,n-1), strsub(s,n) -end - - -function test(s) - local path, filename = split(s) - print(s .. "=[".. path.."]+["..filename.."]") -end - -test("a:/lua/obj/lua.c") -test("lua.lib") |
