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

checker: array str fixes

This commit is contained in:
Alexander Medvednikov
2020-03-26 11:32:29 +01:00
parent f452518a63
commit fc86269bc9
3 changed files with 12 additions and 1 deletions

View File

@ -310,6 +310,7 @@ fn test_clone() {
nums := [1, 2, 3, 4, 100]
nums2 := nums.clone()
assert nums2.len == 5
assert nums.str() == '[1, 2, 3, 4, 100]'
assert nums2.str() == '[1, 2, 3, 4, 100]'
assert nums.slice(1, 3).str() == '[2, 3]'
}