diff options
author | tomas <tomas> | 2004-11-05 13:54:28 +0300 |
---|---|---|
committer | tomas <tomas> | 2004-11-05 13:54:28 +0300 |
commit | c9286d40fe9cacfa022e6ee98905dda9eec6d8b1 (patch) | |
tree | ad02d1a71348af9b7c3586921f742b9bc5ff9db5 /tests | |
parent | 2bc7cbf743631ab8317576b58e98159d3ca08dcc (diff) |
Correcoes em valores de retorno de funcoes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test.lua b/tests/test.lua index 5703bfb..25a3fd3 100644 --- a/tests/test.lua +++ b/tests/test.lua @@ -30,11 +30,11 @@ local reldir = string.gsub (current, "^.*%"..sep.."([^"..sep.."])$", "%1") assert (lfs.chdir (upper), "could not change to upper directory") assert (lfs.chdir (reldir), "could not change back to current directory") assert (lfs.currentdir() == current, "error trying to change directories") -assert (lfs.chdir ("this couldn't be an actual directory") == false, "could change to a non-existent directory") +assert (lfs.chdir ("this couldn't be an actual directory") == nil, "could change to a non-existent directory") -- Changing creating and removing directories assert (lfs.mkdir (tmp.."/lfs_tmp_dir"), "could not make a new directory") assert (os.remove (tmp.."/lfs_tmp_dir"), "could not remove new directory") assert (lfs.mkdir (tmp.."/lfs_tmp_dir/lfs_tmp_dir") == false, "could create a directory inside a non-existent one") -- -assert (lfs.attributes ("this couldn't be an actual file") == false, "could get attributes of a non-existent file") +assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file") assert (type(lfs.attributes (upper)) == "table", "couldn't get attributes of upper directory") |