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:
@@ -127,8 +127,8 @@ fn test_propagation() {
|
|||||||
println(6)
|
println(6)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_q() {
|
fn test_q() ? {
|
||||||
// assert foo_ok()? == true
|
assert foo_ok() ? == 777
|
||||||
}
|
}
|
||||||
|
|
||||||
fn or_return_val() int {
|
fn or_return_val() int {
|
||||||
|
Reference in New Issue
Block a user