From ebed01c946fc72bb3c13edf07dc53f78a7a70c34 Mon Sep 17 00:00:00 2001 From: zakuro Date: Tue, 31 Aug 2021 14:50:26 +0900 Subject: [PATCH] v.tests: add a test_ fn, that returns an optional (#11340) --- vlib/v/tests/option_test.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/tests/option_test.v b/vlib/v/tests/option_test.v index f09aa82932..c9b857ed5a 100644 --- a/vlib/v/tests/option_test.v +++ b/vlib/v/tests/option_test.v @@ -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 {