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

checker: support non-string map.keys method (#7760)

This commit is contained in:
Nick Treleaven
2021-01-03 14:55:06 +00:00
committed by GitHub
parent 529f46d808
commit 38e0aa350d
4 changed files with 21 additions and 4 deletions

View File

@ -492,6 +492,7 @@ fn test_int_keys() {
same := mc == m
assert same
assert mc.len == 3
assert mc.keys() == [3,4,5]
mut all := []int{}
for k, v in mc {
assert m[k] == v