Files
wren/test/os/platform/homedir.wren
T
Dario Vladovićandruby0x1 8190115b97 Implement Platform.homePath (#48)
* fix naming and path max

Co-authored-by: ruby0x1 <ruby0x1@pm.me>
2021-05-02 13:00:19 -07:00

8 lines
323 B
JavaScript
Vendored

import "io" for File, Directory
import "os" for Platform
System.print(Platform.homePath is String) // expect: true
System.print(!Platform.homePath.isEmpty) // expect: true
System.print(File.realPath(Platform.homePath) == Platform.homePath) // expect: true
System.print(Directory.exists(Platform.homePath)) // expect: true