From 986e9cfa1b244734a6606859f629d55f7ea8da60 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 22 Sep 2024 13:27:24 -0300 Subject: [PATCH] test --- vlib/v/tests/options/option_fn_var_test.v | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vlib/v/tests/options/option_fn_var_test.v b/vlib/v/tests/options/option_fn_var_test.v index b4dc3a2b3b973e..22ba71b16d9562 100644 --- a/vlib/v/tests/options/option_fn_var_test.v +++ b/vlib/v/tests/options/option_fn_var_test.v @@ -19,3 +19,9 @@ fn test_main() { println(fun) assert fun == 'options' } + +fn test_ifguard() { + if req2 := find_func('vlang') { + assert req2('options') == 'options' + } +}