From 730f48559187c7b748c9eb53df151cc481430f69 Mon Sep 17 00:00:00 2001 From: yuyi Date: Tue, 16 Jun 2020 04:31:11 +0800 Subject: [PATCH] test: fix `test_array_init()` --- vlib/v/tests/array_init_test.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/tests/array_init_test.v b/vlib/v/tests/array_init_test.v index 268842cb57..eebe939c87 100644 --- a/vlib/v/tests/array_init_test.v +++ b/vlib/v/tests/array_init_test.v @@ -6,13 +6,13 @@ fn test_array_init() { b := [1, 2, 3] mut a := []int{cap: b.len} a << 1 - '$a, $a.len, $a.cap' == '[1], 1, 3' + assert '$a, $a.len, $a.cap' == '[1], 1, 3' c := Init{len: 3} mut d := []string{cap: c.len} d << 'aaa' d << 'bbb' - '$d, $d.len, $d.cap' == "['aaa', 'bbb'], 2, 3" + assert '$d, $d.len, $d.cap' == "['aaa', 'bbb'], 2, 3" } fn test_nested_array_init() {