Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
or_block_endwiths_expr_test.v
20
lines
·
17
sloc
·
268 bytes
·
0737af92d53909f4eb21b69b2889faa401a2bada
Raw
1
fn
some_fn(text string) string {
2
mut
some_map := map[string]string{}
3
4
key :=
''
5
found := some_map[key]
or
{
6
if
true
{
7
if
true
{
8
}
else
{
9
}
10
}
else
{
11
}
12
13
'no'
14
}
15
return
found
16
}
17
18
fn
test_or_block_endwiths_expr() {
19
assert some_fn(
'abc abc'
) ==
'no'
20
}
21