aboutsummaryrefslogtreecommitdiff
path: root/tests/test.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-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(".")