diff options
author | Mattes D <github@xoft.cz> | 2015-04-10 21:40:45 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-04-10 21:40:45 +0200 |
commit | 65a1158e40b30d8c06d6398bc142c6ae9e783006 (patch) | |
tree | 67a51cecfb5a2d4b214fd083e470447d77f5fce6 /MCServer/Plugins/Debuggers/Debuggers.lua | |
parent | Fixed MSVC warnings, improved comments. (diff) | |
download | cuberite-65a1158e40b30d8c06d6398bc142c6ae9e783006.tar cuberite-65a1158e40b30d8c06d6398bc142c6ae9e783006.tar.gz cuberite-65a1158e40b30d8c06d6398bc142c6ae9e783006.tar.bz2 cuberite-65a1158e40b30d8c06d6398bc142c6ae9e783006.tar.lz cuberite-65a1158e40b30d8c06d6398bc142c6ae9e783006.tar.xz cuberite-65a1158e40b30d8c06d6398bc142c6ae9e783006.tar.zst cuberite-65a1158e40b30d8c06d6398bc142c6ae9e783006.zip |
Diffstat (limited to 'MCServer/Plugins/Debuggers/Debuggers.lua')
-rw-r--r-- | MCServer/Plugins/Debuggers/Debuggers.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua index d0c362ab4..c8e96d378 100644 --- a/MCServer/Plugins/Debuggers/Debuggers.lua +++ b/MCServer/Plugins/Debuggers/Debuggers.lua @@ -62,6 +62,7 @@ function Initialize(Plugin) TestStringBase64() -- TestUUIDFromName() -- TestRankMgr() + TestFileExt() --[[ -- Test cCompositeChat usage in console-logging: @@ -79,6 +80,18 @@ end; +function TestFileExt() + assert(cFile:ChangeFileExt("fileless_dir/", "new") == "fileless_dir/") + 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.dir/file", "new") == "path/to.dir/file.new") + assert(cFile:ChangeFileExt("path/to.dir/file.ext", "new") == "path/to.dir/file.new") +end + + + + + function TestPluginCalls() -- In order to test the inter-plugin communication, we're going to call Core's ReturnColorFromChar() function -- It is a rather simple function that doesn't need any tables as its params and returns a value, too |