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

map: wrap up delete fix (#9601)

This commit is contained in:
ka-weihe
2021-04-06 15:57:08 +02:00
committed by GitHub
parent 7d5c1c2ddb
commit cbcc0d34b5
6 changed files with 50 additions and 15 deletions

View File

@ -568,9 +568,9 @@ fn test_int_keys() {
}
four := 4
m2.delete_1(3)
m2.delete_1(four)
m2.delete_1(5)
m2.delete(3)
m2.delete(four)
m2.delete(5)
assert m2.len == 0
assert m2[3] == 0
assert m2[4] == 0
@ -603,7 +603,7 @@ fn test_int_keys() {
2: 'two'
}
assert m3[1] == 'one'
m3.delete_1(1)
m3.delete(1)
}
fn test_voidptr_keys() {