Files
wren/test/os/platform/name.wren
T

16 lines
392 B
JavaScript
Raw Normal View History

2016-05-21 12:44:17 -07:00
import "os" for Platform
2021-04-28 17:45:50 -04:00
var platforms = [
"Windows",
"iOS",
"OS X",
"Unknown",
"Linux",
"Unix",
"POSIX"
]
2016-05-21 12:44:17 -07:00
// 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
2021-04-28 17:45:50 -04:00
System.print(platforms.contains(Platform.name)) // expect: true