diff options
author | Peter Melnichenko <mpeterval@gmail.com> | 2017-09-14 12:15:58 +0300 |
---|---|---|
committer | Peter Melnichenko <mpeterval@gmail.com> | 2017-09-14 12:15:58 +0300 |
commit | d399961536eee59f891a395271bf12d6a0c70c64 (patch) | |
tree | 8f3094937cb09b9e46e00248ccf606922fb69fac /tests | |
parent | 8a7796ec170923267a823566424f818037bca82c (diff) | |
parent | a332bde584756b14298f51e913bdc309f87e7ff8 (diff) | |
download | luafilesystem-d399961536eee59f891a395271bf12d6a0c70c64.tar.gz luafilesystem-d399961536eee59f891a395271bf12d6a0c70c64.tar.bz2 luafilesystem-d399961536eee59f891a395271bf12d6a0c70c64.zip |
Merge branch '1.7'
Diffstat (limited to 'tests')
-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(".") |