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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user