1
0
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:
Alexander Medvednikov
2019-07-31 10:46:00 +02:00
parent fa24a0cec5
commit ddb4f45b02
4 changed files with 9 additions and 9 deletions

View File

@ -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'}