Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
aliases
/
alias_map_keys_test.v
12
lines
·
10
sloc
·
208 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
type
Foo = map[string]string
2
3
fn
test_alias_map_keys() {
4
keys_list := Foo({
5
'foo1'
:
'bar1'
6
'foo2'
:
'bar2'
7
'foo3'
:
'bar3'
8
}).keys()
9
10
println(keys_list)
11
assert keys_list == [
'foo1'
,
'foo2'
,
'foo3'
]
12
}
13