mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.tests: add a test_ fn, that returns an optional (#11340)
This commit is contained in:
parent
b72a2de931
commit
ebed01c946
@ -127,8 +127,8 @@ fn test_propagation() {
|
||||
println(6)
|
||||
}
|
||||
|
||||
fn test_q() {
|
||||
// assert foo_ok()? == true
|
||||
fn test_q() ? {
|
||||
assert foo_ok() ? == 777
|
||||
}
|
||||
|
||||
fn or_return_val() int {
|
||||
|
Loading…
Reference in New Issue
Block a user