From 1bf6d04e371eddd101695f60eab64ff4391362d5 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 4 Aug 2021 12:58:06 +0300 Subject: [PATCH] ci: fix failing program_test.v due to deprecation warnings --- vlib/v/gen/js/tests/testdata/array.v | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vlib/v/gen/js/tests/testdata/array.v b/vlib/v/gen/js/tests/testdata/array.v index 816ef82ae7..2465669f26 100644 --- a/vlib/v/gen/js/tests/testdata/array.v +++ b/vlib/v/gen/js/tests/testdata/array.v @@ -128,7 +128,7 @@ fn main() { println(*d_arr[1][0]) // 1 } { - // test assign + // test assign mut arr := [2, 4, 8, 16, 32, 64, 128] arr[0] = 2 arr[1] &= 255 @@ -1064,20 +1064,20 @@ fn main() { ivan := Person{ name: 'ivan' nums: [1, 2, 3] - kv: map{ + kv: { 'aaa': '111' } } people := [Person{ name: 'ivan' nums: [1, 2, 3] - kv: map{ + kv: { 'aaa': '111' } }, Person{ name: 'bob' nums: [2] - kv: map{ + kv: { 'bbb': '222' } }] @@ -1088,20 +1088,20 @@ fn main() { ivan := Person{ name: 'ivan' nums: [1, 2, 3] - kv: map{ + kv: { 'aaa': '111' } } people := [Person{ name: 'ivan' nums: [1, 2, 3] - kv: map{ + kv: { 'aaa': '111' } }, Person{ name: 'bob' nums: [2] - kv: map{ + kv: { 'bbb': '222' } }]