diff options
Diffstat (limited to '')
-rw-r--r-- | tests/test.lua | 5 |
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(".") | |||
152 | io.flush() | 152 | io.flush() |
153 | 153 | ||
154 | -- Trying to get attributes of a non-existent file | 154 | -- Trying to get attributes of a non-existent file |
155 | assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file") | 155 | local attr_ok, err, errno = lfs.attributes("this couldn't be an actual file") |
156 | assert(attr_ok == nil, "could get attributes of a non-existent file") | ||
157 | assert(type(err) == "string", "failed lfs.attributes did not return an error message") | ||
158 | assert(type(errno) == "number", "failed lfs.attributes did not return error code") | ||
156 | assert (type(lfs.attributes (upper)) == "table", "couldn't get attributes of upper directory") | 159 | assert (type(lfs.attributes (upper)) == "table", "couldn't get attributes of upper directory") |
157 | 160 | ||
158 | io.write(".") | 161 | io.write(".") |