v.tests: add a test_ fn, that returns an optional (#11340)
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