Implement Process.version (#42)

* Implement `Process.version`
* Update`os` test suite
This commit is contained in:
Dario Vladović
2020-06-13 21:23:02 -07:00
committed by GitHub
parent 1ab88ed201
commit e4a0fa485e
5 changed files with 17 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import "os" for Process
System.print(Process.version is String) // expect: true
System.print(Process.version.isEmpty) // expect: false
var isNumber = Fn.new {|str| Num.fromString(str) != null }
System.print(Process.version.split(".").all(isNumber)) // expect: true