mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
- Rename the "process" module to "os". - Add Platform to it. - Static "name" method. - Static "isPosix" method. - Docs and tests!
6 lines
217 B
Plaintext
6 lines
217 B
Plaintext
import "os" for Platform
|
|
|
|
// Can't test for certain values since this test is cross-platform, but we can
|
|
// at least make sure it is callable and returns a bool.
|
|
System.print(Platform.isPosix is Bool) // expect: true
|