From 8ea576783b303539e2764b6e058e1d5a2b8fa0ff Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 19 Jul 2021 01:18:39 +0300 Subject: [PATCH] tests: fix failed consts test (it now works properly) --- vlib/v/tests/const_test.v | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/vlib/v/tests/const_test.v b/vlib/v/tests/const_test.v index 168b0c6a69..a3e664d518 100644 --- a/vlib/v/tests/const_test.v +++ b/vlib/v/tests/const_test.v @@ -1,17 +1,21 @@ pub const ( - a = b - c = a + b - b = 1 - d = (e / 2) + 7 - e = 9 + a = b + ccc = a + b + b = 1 + d = (e / 2) + 7 + e = 9 ) pub const x = 10 fn test_const() { - assert a == 1 assert d == 11 - assert c == 1 + // + assert b == 1 + assert a == 1 + assert ccc == a + b + assert e == 9 + assert d == (e / 2) + 7 } // const optional test