From 7f68daf51e44bdfe81460e98dec915711fb11eaa Mon Sep 17 00:00:00 2001 From: Swastik Date: Sun, 19 Jan 2025 14:40:02 +0530 Subject: [PATCH] fix test --- vlib/v/tests/options/option_sumtype_test.v | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/vlib/v/tests/options/option_sumtype_test.v b/vlib/v/tests/options/option_sumtype_test.v index f17b78733600e0..9190634c64ab15 100644 --- a/vlib/v/tests/options/option_sumtype_test.v +++ b/vlib/v/tests/options/option_sumtype_test.v @@ -6,11 +6,13 @@ pub fn teste() ?TType { fn test_main() { x := teste() - if x is []int { - dump(x) - y := x as []int - assert y == [1, 2] - return + if x != none { + if x is []int { + dump(x) + y := x as []int + assert y == [1, 2] + return + } } assert false }