Files
wren/test/os/process/all_arguments.wren
T

12 lines
391 B
Plaintext
Raw Normal View History

2016-05-21 12:44:17 -07:00
import "os" for Process
var args = Process.allArguments
System.print(args is List) // expect: true
System.print(args.count) // expect: 2
// Includes wren executable and file being run.
2016-10-09 09:18:27 +01:00
System.print(args[0].contains("wren")) // expect: true
2016-05-21 12:44:17 -07:00
System.print(args[1]) // expect: test/os/process/all_arguments.wren
// TODO: Test passing additional args once we have an API to spawn a process.