aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2017-09-14 12:15:58 +0300
committerPeter Melnichenko <mpeterval@gmail.com>2017-09-14 12:15:58 +0300
commitd399961536eee59f891a395271bf12d6a0c70c64 (patch)
tree8f3094937cb09b9e46e00248ccf606922fb69fac /tests
parent8a7796ec170923267a823566424f818037bca82c (diff)
parenta332bde584756b14298f51e913bdc309f87e7ff8 (diff)
downloadluafilesystem-d399961536eee59f891a395271bf12d6a0c70c64.tar.gz
luafilesystem-d399961536eee59f891a395271bf12d6a0c70c64.tar.bz2
luafilesystem-d399961536eee59f891a395271bf12d6a0c70c64.zip
Merge branch '1.7'
Diffstat (limited to 'tests')
-rw-r--r--tests/test.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 10810fe..591ee25 100644
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -152,7 +152,10 @@ io.write(".")
152io.flush() 152io.flush()
153 153
154-- Trying to get attributes of a non-existent file 154-- Trying to get attributes of a non-existent file
155assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file") 155local attr_ok, err, errno = lfs.attributes("this couldn't be an actual file")
156assert(attr_ok == nil, "could get attributes of a non-existent file")
157assert(type(err) == "string", "failed lfs.attributes did not return an error message")
158assert(type(errno) == "number", "failed lfs.attributes did not return error code")
156assert (type(lfs.attributes (upper)) == "table", "couldn't get attributes of upper directory") 159assert (type(lfs.attributes (upper)) == "table", "couldn't get attributes of upper directory")
157 160
158io.write(".") 161io.write(".")