mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
@ -131,7 +131,7 @@ fn test_map_init() {
|
||||
one := 'one'
|
||||
three := 'three'
|
||||
m := map{
|
||||
one: 1
|
||||
one: 1
|
||||
'two': 2
|
||||
three: 1 + 2
|
||||
}
|
||||
@ -626,3 +626,9 @@ fn test_map_assign_empty_map_init() {
|
||||
assert a == map[string]int{}
|
||||
assert '$a' == '{}'
|
||||
}
|
||||
|
||||
fn test_in_map_literal() {
|
||||
assert 1 in map{
|
||||
1: 'one'
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user