core::file: add docunit for expected behavior on deleting existing folders
[nit.git] / lib / core / file.nit
index d19bb8e..9e23be2 100644 (file)
@@ -717,6 +717,12 @@ class Path
        # var path = "/does/not/exists/".to_path
        # path.rmdir
        # assert path.last_error != null
+       #
+       # path = "/tmp/path/to/create".to_path
+       # path.to_s.mkdir
+       # assert path.exists
+       # path.rmdir
+       # assert path.last_error == null
        # ~~~
        fun rmdir
        do