mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
array_test.v: str() test
This commit is contained in:
parent
8d2111169a
commit
5510327d70
@ -364,3 +364,11 @@ fn test_filter() {
|
|||||||
assert d[0] == 'is'
|
assert d[0] == 'is'
|
||||||
assert d[1] == 'awesome'
|
assert d[1] == 'awesome'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn test_array_str() {
|
||||||
|
numbers := [1, 2, 3]
|
||||||
|
numbers2 := [numbers, [4, 5, 6]] // dup str() bug
|
||||||
|
assert true
|
||||||
|
assert numbers.str() == '[1, 2, 3]'
|
||||||
|
assert numbers2.str() == '[[1, 2, 3], [4, 5, 6]]'
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user