mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
18 lines
424 B
Rust
18 lines
424 B
Rust
use gio::*;
|
|
use glib::*;
|
|
|
|
use ggemini::client::connection::Request;
|
|
|
|
#[test]
|
|
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(),
|
|
Request::Titan(_) => panic!(),
|
|
},
|
|
REQUEST
|
|
);
|
|
}
|
|
|
|
// @TODO
|