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

urllib: change Values.get to return an option type (#17636)

This commit is contained in:
Heptalon
2023-03-14 07:44:40 +01:00
committed by GitHub
parent daa9034583
commit 618c92a13b
3 changed files with 11 additions and 9 deletions

View File

@ -40,8 +40,8 @@ fn test_parse_query() {
q2 := urllib.parse_query('format="%l:+%c+%t"')!
// dump(q1)
// dump(q2)
assert q1.get('format') == '"%l: %c %t"'
assert q2.get('format') == '"%l: %c %t"'
assert q1.get('format')? == '"%l: %c %t"'
assert q2.get('format')? == '"%l: %c %t"'
}
fn test_parse_query_orders() {