mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
202 B
V
11 lines
202 B
V
module main
|
|
|
|
import os
|
|
|
|
const iterations = (os.getenv_opt('ITERATIONS') or { '5' }).int()
|
|
|
|
fn test_const_use_nested_optionals() {
|
|
println('Number of iterations: $iterations')
|
|
assert iterations == 5
|
|
}
|