Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstevedonovan <steve.j.donovan@gmail.com>2010-12-20 18:52:24 +0300
committerstevedonovan <steve.j.donovan@gmail.com>2010-12-20 18:52:24 +0300
commit86379a2b0889ba8dc35b6e2cbd7ef4302c86944a (patch)
tree7a24f1e49ee76882dd8e975c5c1fd4e3aa1f66d0 /tests/test-dir.lua
parent29b77cb8c4b472c71fec7ae90c5aad1673677755 (diff)
Version 0.9.0 Initial Commit:0.9.0
- lots of documentation improvements - module() is no longer used
Diffstat (limited to 'tests/test-dir.lua')
-rw-r--r--tests/test-dir.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-dir.lua b/tests/test-dir.lua
index 6272610..494db47 100644
--- a/tests/test-dir.lua
+++ b/tests/test-dir.lua
@@ -22,13 +22,14 @@ local newFileName = "move_test.txt"
local err, msg = dir.movefile( fileName, newFileName )
-- Make sure the move is successful
-asserteq( err, true )
+assert( err )
-- Check to make sure the original file is gone
+
asserteq( path.exists( fileName ), false )
-- Check to make sure the new file is there
-asserteq( path.exists( newFileName ), true )
+asserteq (path.exists( newFileName ) , newFileName)
-- Clean up
file.delete( newFileName )