1
0
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:
zakuro
2021-08-31 14:50:26 +09:00
committed by GitHub
parent b72a2de931
commit ebed01c946

View File

@@ -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 {