- Rename the "process" module to "os". - Add Platform to it. - Static "name" method. - Static "isPosix" method. - Docs and tests!
6 lines
218 B
Plaintext
6 lines
218 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 string.
|
|
System.print(Platform.name is String) // expect: true
|