diff options
author | tomas <tomas> | 2006-03-14 13:39:38 +0000 |
---|---|---|
committer | tomas <tomas> | 2006-03-14 13:39:38 +0000 |
commit | 121ae680f1c897d8773041781a6a7bd0c85010fc (patch) | |
tree | 155816b0d245e22e8ba8515fdf19936b1267158d /tests | |
parent | 1a1716f876e2451e73c953aba1e30e97dab189dd (diff) | |
download | luafilesystem-121ae680f1c897d8773041781a6a7bd0c85010fc.tar.gz luafilesystem-121ae680f1c897d8773041781a6a7bd0c85010fc.tar.bz2 luafilesystem-121ae680f1c897d8773041781a6a7bd0c85010fc.zip |
Standardizing execution errors to nil followed by an error message
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test.lua b/tests/test.lua index 1f4eb09..8da5d16 100644 --- a/tests/test.lua +++ b/tests/test.lua | |||
@@ -64,7 +64,7 @@ assert (new_att.modification == attrib.modification) | |||
64 | -- Remove new file and directory | 64 | -- Remove new file and directory |
65 | assert (os.remove (tmpfile), "could not remove new file") | 65 | assert (os.remove (tmpfile), "could not remove new file") |
66 | assert (lfs.rmdir (tmpdir), "could not remove new directory") | 66 | assert (lfs.rmdir (tmpdir), "could not remove new directory") |
67 | assert (lfs.mkdir (tmpdir..sep.."lfs_tmp_dir") == false, "could create a directory inside a non-existent one") | 67 | assert (lfs.mkdir (tmpdir..sep.."lfs_tmp_dir") == nil, "could create a directory inside a non-existent one") |
68 | 68 | ||
69 | -- Trying to get attributes of a non-existent file | 69 | -- Trying to get attributes of a non-existent file |
70 | assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file") | 70 | assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file") |