1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

[]: update all examples and tests

This commit is contained in:
Alexander Medvednikov
2019-11-14 10:00:22 +03:00
parent 96b530cf85
commit 7d924679a6
10 changed files with 390 additions and 389 deletions

View File

@ -65,7 +65,7 @@ struct K {
}
fn test_empty() {
mut chunks := []
mut chunks := []Chunk
a := Chunk{}
assert chunks.len == 0
chunks << a
@ -346,7 +346,7 @@ fn (t Test) str() string {
fn test_struct_print() {
mut a := Test {
a: 'Test',
b: []Test2
b: []
}
b := Test2 {
one: 1,