1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/http/http_test.v
Alexander Medvednikov 6bde860043 http test: not today
2019-08-06 17:31:48 +02:00

22 lines
492 B
Go

import net.urllib
//import http
fn test_escape_unescape() {
/*
original := 'те ст: т\\%'
escaped := urllib.query_escape(original) or { assert false return}
assert escaped == '%D1%82%D0%B5%20%D1%81%D1%82%3A%20%D1%82%5C%25'
unescaped := urllib.query_unescape(escaped) or { assert false return }
assert unescaped == original
*/
}
fn test_http_get() {
/*
$if windows { return }
assert http.get_text('https://vlang.io/version') == '0.1.5'
println('http ok')
*/
}