diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test.lua b/tests/test.lua index 4990aec..abfbd4d 100644 --- a/tests/test.lua +++ b/tests/test.lua | |||
| @@ -120,6 +120,13 @@ assert (new_att.modification == attrib.modification) | |||
| 120 | io.write(".") | 120 | io.write(".") |
| 121 | io.flush() | 121 | io.flush() |
| 122 | 122 | ||
| 123 | -- Check consistency of lfs.attributes values | ||
| 124 | local attr = lfs.attributes (tmpfile) | ||
| 125 | for key, value in pairs(attr) do | ||
| 126 | assert (value == lfs.attributes (tmpfile, key), | ||
| 127 | "lfs.attributes values not consistent") | ||
| 128 | end | ||
| 129 | |||
| 123 | -- Remove new file and directory | 130 | -- Remove new file and directory |
| 124 | assert (os.remove (tmpfile), "could not remove new file") | 131 | assert (os.remove (tmpfile), "could not remove new file") |
| 125 | assert (lfs.rmdir (tmpdir), "could not remove new directory") | 132 | assert (lfs.rmdir (tmpdir), "could not remove new directory") |
