mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-02 10:05:36 +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() {
|
fn client_connection_request_gemini() {
|
||||||
const REQUEST: &str = "gemini://geminiprotocol.net/";
|
const REQUEST: &str = "gemini://geminiprotocol.net/";
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
&match Request::gemini(Uri::parse(REQUEST, UriFlags::NONE).unwrap()) {
|
std::str::from_utf8(
|
||||||
Request::Gemini(request) => request.uri.to_string(),
|
&Request::gemini(Uri::parse(REQUEST, UriFlags::NONE).unwrap()).to_bytes()
|
||||||
_ => panic!(),
|
)
|
||||||
},
|
.unwrap(),
|
||||||
REQUEST
|
format!("{REQUEST}\r\n")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue