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() {