add copyDir stdlib test
This commit is contained in:
parent
3702d1f6c7
commit
013e11fcc4
1 changed files with 18 additions and 0 deletions
|
|
@ -39,6 +39,9 @@ false
|
||||||
true
|
true
|
||||||
true
|
true
|
||||||
Raises
|
Raises
|
||||||
|
true
|
||||||
|
true
|
||||||
|
true
|
||||||
'''
|
'''
|
||||||
"""
|
"""
|
||||||
# test os path creation, iteration, and deletion
|
# test os path creation, iteration, and deletion
|
||||||
|
|
@ -111,3 +114,18 @@ try:
|
||||||
except IOError:
|
except IOError:
|
||||||
echo "Raises"
|
echo "Raises"
|
||||||
removeFile(dname)
|
removeFile(dname)
|
||||||
|
|
||||||
|
# test copyDir:
|
||||||
|
createDir("a/b")
|
||||||
|
open("a/b/file.txt", fmWrite).close
|
||||||
|
createDir("a/b/c")
|
||||||
|
open("a/b/c/fileC.txt", fmWrite).close
|
||||||
|
|
||||||
|
copyDir("a", "../dest/a")
|
||||||
|
removeDir("a")
|
||||||
|
|
||||||
|
echo dirExists("../dest/a/b")
|
||||||
|
echo fileExists("../dest/a/b/file.txt")
|
||||||
|
|
||||||
|
echo fileExists("../dest/a/b/c/fileC.txt")
|
||||||
|
removeDir("../dest")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue