diff options
author | Mattes D <github@xoft.cz> | 2015-04-11 17:42:32 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-04-11 17:42:32 +0200 |
commit | 79e8f8fb20f9c2a4aebd6178a99b40f4e7b4fccc (patch) | |
tree | 721cb564484d40b6e2e61174d15a24e5e1ebbe02 /MCServer/Plugins/Debuggers/Debuggers.lua | |
parent | Added more cFile API functions. (diff) | |
download | cuberite-79e8f8fb20f9c2a4aebd6178a99b40f4e7b4fccc.tar cuberite-79e8f8fb20f9c2a4aebd6178a99b40f4e7b4fccc.tar.gz cuberite-79e8f8fb20f9c2a4aebd6178a99b40f4e7b4fccc.tar.bz2 cuberite-79e8f8fb20f9c2a4aebd6178a99b40f4e7b4fccc.tar.lz cuberite-79e8f8fb20f9c2a4aebd6178a99b40f4e7b4fccc.tar.xz cuberite-79e8f8fb20f9c2a4aebd6178a99b40f4e7b4fccc.tar.zst cuberite-79e8f8fb20f9c2a4aebd6178a99b40f4e7b4fccc.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/Debuggers/Debuggers.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua index d255c0f8f..01a5de81e 100644 --- a/MCServer/Plugins/Debuggers/Debuggers.lua +++ b/MCServer/Plugins/Debuggers/Debuggers.lua @@ -84,10 +84,19 @@ end; function TestFileExt() assert(cFile:ChangeFileExt("fileless_dir/", "new") == "fileless_dir/") + assert(cFile:ChangeFileExt("fileless_dir/", ".new") == "fileless_dir/") assert(cFile:ChangeFileExt("pathless_file.ext", "new") == "pathless_file.new") + assert(cFile:ChangeFileExt("pathless_file.ext", ".new") == "pathless_file.new") assert(cFile:ChangeFileExt("path/to/file.ext", "new") == "path/to/file.new") + assert(cFile:ChangeFileExt("path/to/file.ext", ".new") == "path/to/file.new") assert(cFile:ChangeFileExt("path/to.dir/file", "new") == "path/to.dir/file.new") + assert(cFile:ChangeFileExt("path/to.dir/file", ".new") == "path/to.dir/file.new") assert(cFile:ChangeFileExt("path/to.dir/file.ext", "new") == "path/to.dir/file.new") + assert(cFile:ChangeFileExt("path/to.dir/file.ext", ".new") == "path/to.dir/file.new") + assert(cFile:ChangeFileExt("path/to.dir/file.longext", "new") == "path/to.dir/file.new") + assert(cFile:ChangeFileExt("path/to.dir/file.longext", ".new") == "path/to.dir/file.new") + assert(cFile:ChangeFileExt("path/to.dir/file.", "new") == "path/to.dir/file.new") + assert(cFile:ChangeFileExt("path/to.dir/file.", ".new") == "path/to.dir/file.new") end |