From f5ebfefdc97de16a69548512376aa4200f3a1296 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 10 Mar 2021 10:40:35 +0200 Subject: [PATCH] ci: use a smaller fixed size array for the const eval test (fixes failing windows job) --- .../const_eval_simple_int_expressions_at_comptime_test.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/v/tests/const_eval_simple_int_expressions_at_comptime_test.v b/vlib/v/tests/const_eval_simple_int_expressions_at_comptime_test.v index d5d99bd747..70a1b4620f 100644 --- a/vlib/v/tests/const_eval_simple_int_expressions_at_comptime_test.v +++ b/vlib/v/tests/const_eval_simple_int_expressions_at_comptime_test.v @@ -1,18 +1,18 @@ const kb = 1024 -const buf_siz = 1024 * kb +const buf_siz = 2 * kb fn test_consts() { assert kb == 1024 - assert buf_siz == 1024 * kb - assert buf_siz == 1048576 + assert buf_siz == 2 * kb + assert buf_siz == 2048 println(buf_siz) } fn test_fixed_size_array_can_use_a_known_comptime_const_as_its_size() { buf := [buf_siz]byte{} println(buf.len) - assert buf.len == 1048576 + assert buf.len == 2048 } fn test_fixed_size_array_using_a_known_int_expression_directly_as_its_size() {