mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
11 lines
196 B
V
11 lines
196 B
V
fn test_array() {
|
|
mut strs := ['abc', 'cde']!
|
|
strs[0] += 'def'
|
|
assert strs[0] == 'abcdef'
|
|
}
|
|
|
|
fn test_fixed_array() {
|
|
mut strs := ['abc', 'cde']
|
|
strs[0] += 'def'
|
|
assert strs[0] == 'abcdef'
|
|
}
|