mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
another map bug fix + fix some warnings
This commit is contained in:
@ -38,8 +38,10 @@ fn test_map() {
|
||||
assert keys[1] == 'hello'
|
||||
m.delete('hi')
|
||||
assert m.size == 1
|
||||
|
||||
assert m['hi'] == 0
|
||||
assert m.keys().len == 1
|
||||
assert m.keys()[0] == 'hello'
|
||||
////
|
||||
mut users := map[string]User{}
|
||||
users['1'] = User{'Peter'}
|
||||
|
Reference in New Issue
Block a user