mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
map: add map['aa']+='str' test
This commit is contained in:
parent
9814497b91
commit
05de780219
1 changed files with 7 additions and 0 deletions
|
@ -283,3 +283,10 @@ fn test_map_in_directly() {
|
|||
assert v == 1
|
||||
}
|
||||
}
|
||||
|
||||
fn test_plus_assign_string() {
|
||||
mut m := {'one': ''}
|
||||
m['one'] += '1'
|
||||
assert m.len == 1
|
||||
assert m['one'] == '1'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue