summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tos.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/stdlib/tos.nim b/tests/stdlib/tos.nim
index 10f439dfa..2c0db6953 100644
--- a/tests/stdlib/tos.nim
+++ b/tests/stdlib/tos.nim
@@ -43,6 +43,8 @@ true
 true
 true
 true
+true
+true
 
 '''
 """
@@ -132,6 +134,18 @@ echo fileExists("../dest/a/b/file.txt")
 echo fileExists("../dest/a/b/c/fileC.txt")
 removeDir("../dest")
 
+# test copyDir:
+# if separator at the end of a path
+createDir("a/b")
+open("a/file.txt", fmWrite).close
+
+copyDir("a/", "../dest/a/")
+removeDir("a")
+
+echo dirExists("../dest/a/b")
+echo fileExists("../dest/a/file.txt")
+removeDir("../dest")
+
 # Test get/set modification times
 # Should support at least microsecond resolution
 import times