mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
runtime: simplify nr_cpus(), add a test for nr_jobs()
This commit is contained in:
parent
fb4c3ff31a
commit
c60948e52e
4 changed files with 16 additions and 32 deletions
|
@ -5,6 +5,11 @@ fn test_nr_cpus() {
|
|||
assert nr_cpus > 0
|
||||
}
|
||||
|
||||
fn test_nr_jobs() {
|
||||
nr_jobs := runtime.nr_jobs()
|
||||
assert nr_jobs > 0
|
||||
}
|
||||
|
||||
fn test_is_32bit(){
|
||||
x := runtime.is_32bit().str()
|
||||
assert x == 'true' || x == 'false'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue