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

10 lines
191 B
V

fn test_main() {
k := [10, 20, 30]
println(k.map(it.hex()))
dump(k.map(it.hex))
a := k.map(it.hex)
assert dump(a[0]()) == 'a'
assert dump(a[1]()) == '14'
assert dump(a[2]()) == '1e'
}