Implement Process.cwd (#41)

* Implement `Process.cwd`
* Update `os` test suite
This commit is contained in:
Dario Vladović
2020-06-13 21:12:34 -07:00
committed by GitHub
parent 2de2d26528
commit 1ab88ed201
5 changed files with 29 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
import "io" for File, Directory
import "os" for Process
System.print(Process.cwd is String) // expect: true
System.print(!Process.cwd.isEmpty) // expect: true
System.print(Process.cwd.startsWith("/")) // expect: true
System.print(File.realPath(Process.cwd) == Process.cwd) // expect: true
System.print(Directory.exists(Process.cwd)) // expect: true