v.tests: add a test_ fn, that returns an optional (#11340)

pull/11353/head
zakuro 2021-08-31 14:50:26 +09:00 committed by GitHub
parent b72a2de931
commit ebed01c946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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 {