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

all: change index expr returning optional to result too (#16097)

This commit is contained in:
yuyi
2022-10-20 02:04:16 +08:00
committed by GitHub
parent eda65ad660
commit 612faac0f0
14 changed files with 63 additions and 47 deletions

View File

@@ -18,6 +18,6 @@ fn test_crlf_is_parsable_just_like_lf() {
for content in all {
res := toml.parse_text(content)?
assert res.value('title') == toml.Any('TOML Example')
assert (res.value('database') as map[string]toml.Any)['server']? == toml.Any('192.168.1.1')
assert (res.value('database') as map[string]toml.Any)['server']! == toml.Any('192.168.1.1')
}
}