mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
urllib: test str()
This commit is contained in:
parent
c4e9f09f0f
commit
e266c8a750
@ -21,3 +21,10 @@ fn test_net_urllib() {
|
|||||||
u.user.username == 'joe' &&
|
u.user.username == 'joe' &&
|
||||||
u.user.password == 'pass'
|
u.user.password == 'pass'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn test_str() {
|
||||||
|
url := urllib.parse("https://en.wikipedia.org/wiki/Brazil_(1985_film)") or {
|
||||||
|
panic("unable to parse URL")
|
||||||
|
}
|
||||||
|
assert url.str() == 'https://en.wikipedia.org/wiki/Brazil_(1985_film)'
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user