mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update gemini test conditions
This commit is contained in:
parent
339f0bb1af
commit
c67593e5fd
1 changed files with 5 additions and 5 deletions
|
|
@ -7,11 +7,11 @@ use ggemini::client::connection::Request;
|
|||
fn client_connection_request_gemini() {
|
||||
const REQUEST: &str = "gemini://geminiprotocol.net/";
|
||||
assert_eq!(
|
||||
&match Request::gemini(Uri::parse(REQUEST, UriFlags::NONE).unwrap()) {
|
||||
Request::Gemini(request) => request.uri.to_string(),
|
||||
_ => panic!(),
|
||||
},
|
||||
REQUEST
|
||||
std::str::from_utf8(
|
||||
&Request::gemini(Uri::parse(REQUEST, UriFlags::NONE).unwrap()).to_bytes()
|
||||
)
|
||||
.unwrap(),
|
||||
format!("{REQUEST}\r\n")
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue